{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>School</th>\n",
       "      <th>Class</th>\n",
       "      <th>ID</th>\n",
       "      <th>Gender</th>\n",
       "      <th>Address</th>\n",
       "      <th>Height</th>\n",
       "      <th>Weight</th>\n",
       "      <th>Math</th>\n",
       "      <th>Physics</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_1</td>\n",
       "      <td>173</td>\n",
       "      <td>63</td>\n",
       "      <td>34.0</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1102</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>192</td>\n",
       "      <td>73</td>\n",
       "      <td>32.5</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1103</td>\n",
       "      <td>M</td>\n",
       "      <td>street_2</td>\n",
       "      <td>186</td>\n",
       "      <td>82</td>\n",
       "      <td>87.2</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1104</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>167</td>\n",
       "      <td>81</td>\n",
       "      <td>80.4</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1105</td>\n",
       "      <td>F</td>\n",
       "      <td>street_4</td>\n",
       "      <td>159</td>\n",
       "      <td>64</td>\n",
       "      <td>84.8</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1201</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>188</td>\n",
       "      <td>68</td>\n",
       "      <td>97.0</td>\n",
       "      <td>A-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1202</td>\n",
       "      <td>F</td>\n",
       "      <td>street_4</td>\n",
       "      <td>176</td>\n",
       "      <td>94</td>\n",
       "      <td>63.5</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1203</td>\n",
       "      <td>M</td>\n",
       "      <td>street_6</td>\n",
       "      <td>160</td>\n",
       "      <td>53</td>\n",
       "      <td>58.8</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1204</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>162</td>\n",
       "      <td>63</td>\n",
       "      <td>33.8</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1205</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>167</td>\n",
       "      <td>63</td>\n",
       "      <td>68.4</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1301</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>161</td>\n",
       "      <td>68</td>\n",
       "      <td>31.5</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1302</td>\n",
       "      <td>F</td>\n",
       "      <td>street_1</td>\n",
       "      <td>175</td>\n",
       "      <td>57</td>\n",
       "      <td>87.7</td>\n",
       "      <td>A-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1303</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>188</td>\n",
       "      <td>82</td>\n",
       "      <td>49.7</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1304</td>\n",
       "      <td>M</td>\n",
       "      <td>street_2</td>\n",
       "      <td>195</td>\n",
       "      <td>70</td>\n",
       "      <td>85.2</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1305</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>187</td>\n",
       "      <td>69</td>\n",
       "      <td>61.7</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>174</td>\n",
       "      <td>84</td>\n",
       "      <td>83.3</td>\n",
       "      <td>C</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2102</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>161</td>\n",
       "      <td>61</td>\n",
       "      <td>50.6</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2103</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>157</td>\n",
       "      <td>61</td>\n",
       "      <td>52.5</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2104</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>159</td>\n",
       "      <td>97</td>\n",
       "      <td>72.2</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2105</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>170</td>\n",
       "      <td>81</td>\n",
       "      <td>34.2</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2201</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>193</td>\n",
       "      <td>100</td>\n",
       "      <td>39.1</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2202</td>\n",
       "      <td>F</td>\n",
       "      <td>street_7</td>\n",
       "      <td>194</td>\n",
       "      <td>77</td>\n",
       "      <td>68.5</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2203</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>155</td>\n",
       "      <td>91</td>\n",
       "      <td>73.8</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2204</td>\n",
       "      <td>M</td>\n",
       "      <td>street_1</td>\n",
       "      <td>175</td>\n",
       "      <td>74</td>\n",
       "      <td>47.2</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2205</td>\n",
       "      <td>F</td>\n",
       "      <td>street_7</td>\n",
       "      <td>183</td>\n",
       "      <td>76</td>\n",
       "      <td>85.4</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2301</td>\n",
       "      <td>F</td>\n",
       "      <td>street_4</td>\n",
       "      <td>157</td>\n",
       "      <td>78</td>\n",
       "      <td>72.3</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2302</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>171</td>\n",
       "      <td>88</td>\n",
       "      <td>32.7</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2303</td>\n",
       "      <td>F</td>\n",
       "      <td>street_7</td>\n",
       "      <td>190</td>\n",
       "      <td>99</td>\n",
       "      <td>65.9</td>\n",
       "      <td>C</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2304</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>164</td>\n",
       "      <td>81</td>\n",
       "      <td>95.5</td>\n",
       "      <td>A-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2305</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>187</td>\n",
       "      <td>73</td>\n",
       "      <td>48.9</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2401</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>192</td>\n",
       "      <td>62</td>\n",
       "      <td>45.3</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2402</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>166</td>\n",
       "      <td>82</td>\n",
       "      <td>48.7</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2403</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>158</td>\n",
       "      <td>60</td>\n",
       "      <td>59.7</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2404</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>160</td>\n",
       "      <td>84</td>\n",
       "      <td>67.7</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2405</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>193</td>\n",
       "      <td>54</td>\n",
       "      <td>47.6</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   School Class    ID Gender   Address  Height  Weight  Math Physics\n",
       "0     S_1   C_1  1101      M  street_1     173      63  34.0      A+\n",
       "1     S_1   C_1  1102      F  street_2     192      73  32.5      B+\n",
       "2     S_1   C_1  1103      M  street_2     186      82  87.2      B+\n",
       "3     S_1   C_1  1104      F  street_2     167      81  80.4      B-\n",
       "4     S_1   C_1  1105      F  street_4     159      64  84.8      B+\n",
       "5     S_1   C_2  1201      M  street_5     188      68  97.0      A-\n",
       "6     S_1   C_2  1202      F  street_4     176      94  63.5      B-\n",
       "7     S_1   C_2  1203      M  street_6     160      53  58.8      A+\n",
       "8     S_1   C_2  1204      F  street_5     162      63  33.8       B\n",
       "9     S_1   C_2  1205      F  street_6     167      63  68.4      B-\n",
       "10    S_1   C_3  1301      M  street_4     161      68  31.5      B+\n",
       "11    S_1   C_3  1302      F  street_1     175      57  87.7      A-\n",
       "12    S_1   C_3  1303      M  street_7     188      82  49.7       B\n",
       "13    S_1   C_3  1304      M  street_2     195      70  85.2       A\n",
       "14    S_1   C_3  1305      F  street_5     187      69  61.7      B-\n",
       "15    S_2   C_1  2101      M  street_7     174      84  83.3       C\n",
       "16    S_2   C_1  2102      F  street_6     161      61  50.6      B+\n",
       "17    S_2   C_1  2103      M  street_4     157      61  52.5      B-\n",
       "18    S_2   C_1  2104      F  street_5     159      97  72.2      B+\n",
       "19    S_2   C_1  2105      M  street_4     170      81  34.2       A\n",
       "20    S_2   C_2  2201      M  street_5     193     100  39.1       B\n",
       "21    S_2   C_2  2202      F  street_7     194      77  68.5      B+\n",
       "22    S_2   C_2  2203      M  street_4     155      91  73.8      A+\n",
       "23    S_2   C_2  2204      M  street_1     175      74  47.2      B-\n",
       "24    S_2   C_2  2205      F  street_7     183      76  85.4       B\n",
       "25    S_2   C_3  2301      F  street_4     157      78  72.3      B+\n",
       "26    S_2   C_3  2302      M  street_5     171      88  32.7       A\n",
       "27    S_2   C_3  2303      F  street_7     190      99  65.9       C\n",
       "28    S_2   C_3  2304      F  street_6     164      81  95.5      A-\n",
       "29    S_2   C_3  2305      M  street_4     187      73  48.9       B\n",
       "30    S_2   C_4  2401      F  street_2     192      62  45.3       A\n",
       "31    S_2   C_4  2402      M  street_7     166      82  48.7       B\n",
       "32    S_2   C_4  2403      F  street_6     158      60  59.7      B+\n",
       "33    S_2   C_4  2404      F  street_2     160      84  67.7       B\n",
       "34    S_2   C_4  2405      F  street_6     193      54  47.6       B"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.read_csv(r\"C:\\Users\\闫厚镇\\Desktop\\datawhale学习\\yanhouzhen-joyful-pandas-master\\joyful-pandas\\data\\table.csv\",encoding=\"utf-8\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "df.to_csv('data/new_table.csv',encoding=\"utf-8\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "s = pd.Series(np.random.randn(5),index=['a','b','c','d','e'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([-0.84834787, -0.28291578, -1.74964481,  0.59101251, -0.07763212])"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "s.values\n",
    "s.index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "-0.8483478739112125"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#取值\n",
    "s['a']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.DataFrame({'col1':list('abcde'),'col2':range(5,10),'col3':[1.3,2.5,3.6,4.6,5.8]},\n",
    "                 index=list('一二三四五'))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>new_col1</th>\n",
       "      <th>col2</th>\n",
       "      <th>col3</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>one</th>\n",
       "      <td>a</td>\n",
       "      <td>5</td>\n",
       "      <td>1.3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>二</th>\n",
       "      <td>b</td>\n",
       "      <td>6</td>\n",
       "      <td>2.5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>三</th>\n",
       "      <td>c</td>\n",
       "      <td>7</td>\n",
       "      <td>3.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>四</th>\n",
       "      <td>d</td>\n",
       "      <td>8</td>\n",
       "      <td>4.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>五</th>\n",
       "      <td>e</td>\n",
       "      <td>9</td>\n",
       "      <td>5.8</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    new_col1  col2  col3\n",
       "one        a     5   1.3\n",
       "二          b     6   2.5\n",
       "三          c     7   3.6\n",
       "四          d     8   4.6\n",
       "五          e     9   5.8"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#修改行名或列名\n",
    "df.rename(index={'一':'one'},columns={'col1':'new_col1'})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['一', '二', '三', '四', '五'], dtype='object')"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.index"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "删除操作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#del 某行  直接在原表中删除\n",
    "#pop直接在原表中操作"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "增加操作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>col1</th>\n",
       "      <th>col2</th>\n",
       "      <th>col3</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>一</th>\n",
       "      <td>a</td>\n",
       "      <td>5</td>\n",
       "      <td>1.3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>二</th>\n",
       "      <td>b</td>\n",
       "      <td>6</td>\n",
       "      <td>2.5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>三</th>\n",
       "      <td>c</td>\n",
       "      <td>7</td>\n",
       "      <td>3.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>四</th>\n",
       "      <td>d</td>\n",
       "      <td>8</td>\n",
       "      <td>4.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>五</th>\n",
       "      <td>e</td>\n",
       "      <td>9</td>\n",
       "      <td>5.8</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  col1  col2  col3\n",
       "一    a     5   1.3\n",
       "二    b     6   2.5\n",
       "三    c     7   3.6\n",
       "四    d     8   4.6\n",
       "五    e     9   5.8"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>col1</th>\n",
       "      <th>col2</th>\n",
       "      <th>col3</th>\n",
       "      <th>B</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>一</th>\n",
       "      <td>a</td>\n",
       "      <td>5</td>\n",
       "      <td>1.3</td>\n",
       "      <td>a</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>二</th>\n",
       "      <td>b</td>\n",
       "      <td>6</td>\n",
       "      <td>2.5</td>\n",
       "      <td>b</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>三</th>\n",
       "      <td>c</td>\n",
       "      <td>7</td>\n",
       "      <td>3.6</td>\n",
       "      <td>c</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>四</th>\n",
       "      <td>d</td>\n",
       "      <td>8</td>\n",
       "      <td>4.6</td>\n",
       "      <td>d</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>五</th>\n",
       "      <td>e</td>\n",
       "      <td>9</td>\n",
       "      <td>5.8</td>\n",
       "      <td>e</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  col1  col2  col3  B\n",
       "一    a     5   1.3  a\n",
       "二    b     6   2.5  b\n",
       "三    c     7   3.6  c\n",
       "四    d     8   4.6  d\n",
       "五    e     9   5.8  e"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#直接增加 \n",
    "df['B'] = list('abcde')\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>col3</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>一</th>\n",
       "      <td>1.3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>二</th>\n",
       "      <td>2.5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>三</th>\n",
       "      <td>3.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>四</th>\n",
       "      <td>4.6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>五</th>\n",
       "      <td>5.8</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   col3\n",
       "一   1.3\n",
       "二   2.5\n",
       "三   3.6\n",
       "四   4.6\n",
       "五   5.8"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#根据类型筛选列\n",
    "df.select_dtypes(include=['float'])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "常用函数介绍"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.read_csv(r\"C:\\Users\\闫厚镇\\Desktop\\datawhale学习\\yanhouzhen-joyful-pandas-master\\joyful-pandas\\data\\table.csv\",encoding=\"utf-8\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "School      2\n",
       "Class       4\n",
       "ID         35\n",
       "Gender      2\n",
       "Address     6\n",
       "Height     25\n",
       "Weight     25\n",
       "Math       35\n",
       "Physics     7\n",
       "dtype: int64"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.nunique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['A+', 'B+', 'B-', 'A-', 'B', 'A', 'C'], dtype=object)"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['Physics'].unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "35"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#count返回非缺失值元素个数\n",
    "df['Physics'].count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2303    1\n",
       "1301    1\n",
       "2203    1\n",
       "2202    1\n",
       "1305    1\n",
       "1304    1\n",
       "1303    1\n",
       "1302    1\n",
       "1105    1\n",
       "2205    1\n",
       "1104    1\n",
       "1103    1\n",
       "1102    1\n",
       "1101    1\n",
       "2404    1\n",
       "2305    1\n",
       "2204    1\n",
       "2401    1\n",
       "2302    1\n",
       "1204    1\n",
       "2301    1\n",
       "2105    1\n",
       "2104    1\n",
       "2103    1\n",
       "2102    1\n",
       "1205    1\n",
       "1203    1\n",
       "2402    1\n",
       "1202    1\n",
       "1201    1\n",
       "2201    1\n",
       "2405    1\n",
       "2101    1\n",
       "2403    1\n",
       "2304    1\n",
       "Name: ID, dtype: int64"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#返回每一个类别对应多少个值\n",
    "df['ID'].value_counts()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "info函数返回有哪些列、有多少非缺失值、每列的类型\n",
    "主要是用来查缺失值的"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 35 entries, 0 to 34\n",
      "Data columns (total 9 columns):\n",
      "School     35 non-null object\n",
      "Class      35 non-null object\n",
      "ID         35 non-null int64\n",
      "Gender     35 non-null object\n",
      "Address    35 non-null object\n",
      "Height     35 non-null int64\n",
      "Weight     35 non-null int64\n",
      "Math       35 non-null float64\n",
      "Physics    35 non-null object\n",
      "dtypes: float64(1), int64(3), object(5)\n",
      "memory usage: 2.5+ KB\n"
     ]
    }
   ],
   "source": [
    "df.info()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "describe默认统计数值型数据的各个统计量"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ID</th>\n",
       "      <th>Height</th>\n",
       "      <th>Weight</th>\n",
       "      <th>Math</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>count</th>\n",
       "      <td>35.00000</td>\n",
       "      <td>35.000000</td>\n",
       "      <td>35.000000</td>\n",
       "      <td>35.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mean</th>\n",
       "      <td>1803.00000</td>\n",
       "      <td>174.142857</td>\n",
       "      <td>74.657143</td>\n",
       "      <td>61.351429</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>std</th>\n",
       "      <td>536.87741</td>\n",
       "      <td>13.541098</td>\n",
       "      <td>12.895377</td>\n",
       "      <td>19.915164</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>min</th>\n",
       "      <td>1101.00000</td>\n",
       "      <td>155.000000</td>\n",
       "      <td>53.000000</td>\n",
       "      <td>31.500000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25%</th>\n",
       "      <td>1204.50000</td>\n",
       "      <td>161.000000</td>\n",
       "      <td>63.000000</td>\n",
       "      <td>47.400000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50%</th>\n",
       "      <td>2103.00000</td>\n",
       "      <td>173.000000</td>\n",
       "      <td>74.000000</td>\n",
       "      <td>61.700000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>75%</th>\n",
       "      <td>2301.50000</td>\n",
       "      <td>187.500000</td>\n",
       "      <td>82.000000</td>\n",
       "      <td>77.100000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>max</th>\n",
       "      <td>2405.00000</td>\n",
       "      <td>195.000000</td>\n",
       "      <td>100.000000</td>\n",
       "      <td>97.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "               ID      Height      Weight       Math\n",
       "count    35.00000   35.000000   35.000000  35.000000\n",
       "mean   1803.00000  174.142857   74.657143  61.351429\n",
       "std     536.87741   13.541098   12.895377  19.915164\n",
       "min    1101.00000  155.000000   53.000000  31.500000\n",
       "25%    1204.50000  161.000000   63.000000  47.400000\n",
       "50%    2103.00000  173.000000   74.000000  61.700000\n",
       "75%    2301.50000  187.500000   82.000000  77.100000\n",
       "max    2405.00000  195.000000  100.000000  97.000000"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.describe()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "idxmax()返回最大值"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "34"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "df['ID'].idxmax()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "nlargest函数返回前几个大的元素值，nsmallest功能类似"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "34    2405\n",
       "33    2404\n",
       "32    2403\n",
       "31    2402\n",
       "30    2401\n",
       "Name: ID, dtype: int64"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "df['ID'].nlargest(5)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0     34.0\n",
       "1     32.5\n",
       "2     87.2\n",
       "3     80.4\n",
       "4     84.8\n",
       "5     97.0\n",
       "6     63.5\n",
       "7     58.8\n",
       "8     33.8\n",
       "9     68.4\n",
       "10    31.5\n",
       "11    87.7\n",
       "12    49.7\n",
       "13    85.2\n",
       "14    61.7\n",
       "15    83.3\n",
       "16    50.6\n",
       "17    52.5\n",
       "18    72.2\n",
       "19    34.2\n",
       "20    39.1\n",
       "21    68.5\n",
       "22    73.8\n",
       "23    47.2\n",
       "24    85.4\n",
       "25    72.3\n",
       "26    32.7\n",
       "27    65.9\n",
       "28    95.5\n",
       "29    48.9\n",
       "30    45.3\n",
       "31    48.7\n",
       "32    59.7\n",
       "33    67.7\n",
       "34    47.6\n",
       "Name: Math, dtype: float64"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#clip取中间的数\n",
    "df['Math'].clip(20,500)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#df[].replace(['旧值1’，‘旧值2’],[‘新1’，‘新2’])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#df.replace({\"字段\":{'旧1'：'新1',}})"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "apply 对于某一列可以迭代每一列的值操作"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0     34.0!\n",
       "1     32.5!\n",
       "2     87.2!\n",
       "3     80.4!\n",
       "4     84.8!\n",
       "5     97.0!\n",
       "6     63.5!\n",
       "7     58.8!\n",
       "8     33.8!\n",
       "9     68.4!\n",
       "10    31.5!\n",
       "11    87.7!\n",
       "12    49.7!\n",
       "13    85.2!\n",
       "14    61.7!\n",
       "15    83.3!\n",
       "16    50.6!\n",
       "17    52.5!\n",
       "18    72.2!\n",
       "19    34.2!\n",
       "20    39.1!\n",
       "21    68.5!\n",
       "22    73.8!\n",
       "23    47.2!\n",
       "24    85.4!\n",
       "25    72.3!\n",
       "26    32.7!\n",
       "27    65.9!\n",
       "28    95.5!\n",
       "29    48.9!\n",
       "30    45.3!\n",
       "31    48.7!\n",
       "32    59.7!\n",
       "33    67.7!\n",
       "34    47.6!\n",
       "Name: Math, dtype: object"
      ]
     },
     "execution_count": 43,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['Math'].apply(lambda x :str(x)+\"!\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "索引排序按照索引的大小进行排序"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>School</th>\n",
       "      <th>Class</th>\n",
       "      <th>ID</th>\n",
       "      <th>Gender</th>\n",
       "      <th>Address</th>\n",
       "      <th>Height</th>\n",
       "      <th>Weight</th>\n",
       "      <th>Physics</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Math</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>34.0</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_1</td>\n",
       "      <td>173</td>\n",
       "      <td>63</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32.5</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1102</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>192</td>\n",
       "      <td>73</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87.2</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1103</td>\n",
       "      <td>M</td>\n",
       "      <td>street_2</td>\n",
       "      <td>186</td>\n",
       "      <td>82</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>80.4</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1104</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>167</td>\n",
       "      <td>81</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>84.8</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1105</td>\n",
       "      <td>F</td>\n",
       "      <td>street_4</td>\n",
       "      <td>159</td>\n",
       "      <td>64</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>97.0</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1201</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>188</td>\n",
       "      <td>68</td>\n",
       "      <td>A-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>63.5</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1202</td>\n",
       "      <td>F</td>\n",
       "      <td>street_4</td>\n",
       "      <td>176</td>\n",
       "      <td>94</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>58.8</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1203</td>\n",
       "      <td>M</td>\n",
       "      <td>street_6</td>\n",
       "      <td>160</td>\n",
       "      <td>53</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33.8</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1204</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>162</td>\n",
       "      <td>63</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>68.4</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1205</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>167</td>\n",
       "      <td>63</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31.5</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1301</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>161</td>\n",
       "      <td>68</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>87.7</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1302</td>\n",
       "      <td>F</td>\n",
       "      <td>street_1</td>\n",
       "      <td>175</td>\n",
       "      <td>57</td>\n",
       "      <td>A-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>49.7</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1303</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>188</td>\n",
       "      <td>82</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>85.2</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1304</td>\n",
       "      <td>M</td>\n",
       "      <td>street_2</td>\n",
       "      <td>195</td>\n",
       "      <td>70</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>61.7</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1305</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>187</td>\n",
       "      <td>69</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>83.3</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>174</td>\n",
       "      <td>84</td>\n",
       "      <td>C</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50.6</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2102</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>161</td>\n",
       "      <td>61</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>52.5</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2103</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>157</td>\n",
       "      <td>61</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>72.2</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2104</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>159</td>\n",
       "      <td>97</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34.2</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2105</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>170</td>\n",
       "      <td>81</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39.1</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2201</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>193</td>\n",
       "      <td>100</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>68.5</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2202</td>\n",
       "      <td>F</td>\n",
       "      <td>street_7</td>\n",
       "      <td>194</td>\n",
       "      <td>77</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>73.8</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2203</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>155</td>\n",
       "      <td>91</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47.2</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2204</td>\n",
       "      <td>M</td>\n",
       "      <td>street_1</td>\n",
       "      <td>175</td>\n",
       "      <td>74</td>\n",
       "      <td>B-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>85.4</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_2</td>\n",
       "      <td>2205</td>\n",
       "      <td>F</td>\n",
       "      <td>street_7</td>\n",
       "      <td>183</td>\n",
       "      <td>76</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>72.3</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2301</td>\n",
       "      <td>F</td>\n",
       "      <td>street_4</td>\n",
       "      <td>157</td>\n",
       "      <td>78</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32.7</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2302</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>171</td>\n",
       "      <td>88</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>65.9</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2303</td>\n",
       "      <td>F</td>\n",
       "      <td>street_7</td>\n",
       "      <td>190</td>\n",
       "      <td>99</td>\n",
       "      <td>C</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>95.5</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2304</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>164</td>\n",
       "      <td>81</td>\n",
       "      <td>A-</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>48.9</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2305</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>187</td>\n",
       "      <td>73</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45.3</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2401</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>192</td>\n",
       "      <td>62</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>48.7</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2402</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>166</td>\n",
       "      <td>82</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>59.7</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2403</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>158</td>\n",
       "      <td>60</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>67.7</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2404</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>160</td>\n",
       "      <td>84</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47.6</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_4</td>\n",
       "      <td>2405</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>193</td>\n",
       "      <td>54</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     School Class    ID Gender   Address  Height  Weight Physics\n",
       "Math                                                            \n",
       "34.0    S_1   C_1  1101      M  street_1     173      63      A+\n",
       "32.5    S_1   C_1  1102      F  street_2     192      73      B+\n",
       "87.2    S_1   C_1  1103      M  street_2     186      82      B+\n",
       "80.4    S_1   C_1  1104      F  street_2     167      81      B-\n",
       "84.8    S_1   C_1  1105      F  street_4     159      64      B+\n",
       "97.0    S_1   C_2  1201      M  street_5     188      68      A-\n",
       "63.5    S_1   C_2  1202      F  street_4     176      94      B-\n",
       "58.8    S_1   C_2  1203      M  street_6     160      53      A+\n",
       "33.8    S_1   C_2  1204      F  street_5     162      63       B\n",
       "68.4    S_1   C_2  1205      F  street_6     167      63      B-\n",
       "31.5    S_1   C_3  1301      M  street_4     161      68      B+\n",
       "87.7    S_1   C_3  1302      F  street_1     175      57      A-\n",
       "49.7    S_1   C_3  1303      M  street_7     188      82       B\n",
       "85.2    S_1   C_3  1304      M  street_2     195      70       A\n",
       "61.7    S_1   C_3  1305      F  street_5     187      69      B-\n",
       "83.3    S_2   C_1  2101      M  street_7     174      84       C\n",
       "50.6    S_2   C_1  2102      F  street_6     161      61      B+\n",
       "52.5    S_2   C_1  2103      M  street_4     157      61      B-\n",
       "72.2    S_2   C_1  2104      F  street_5     159      97      B+\n",
       "34.2    S_2   C_1  2105      M  street_4     170      81       A\n",
       "39.1    S_2   C_2  2201      M  street_5     193     100       B\n",
       "68.5    S_2   C_2  2202      F  street_7     194      77      B+\n",
       "73.8    S_2   C_2  2203      M  street_4     155      91      A+\n",
       "47.2    S_2   C_2  2204      M  street_1     175      74      B-\n",
       "85.4    S_2   C_2  2205      F  street_7     183      76       B\n",
       "72.3    S_2   C_3  2301      F  street_4     157      78      B+\n",
       "32.7    S_2   C_3  2302      M  street_5     171      88       A\n",
       "65.9    S_2   C_3  2303      F  street_7     190      99       C\n",
       "95.5    S_2   C_3  2304      F  street_6     164      81      A-\n",
       "48.9    S_2   C_3  2305      M  street_4     187      73       B\n",
       "45.3    S_2   C_4  2401      F  street_2     192      62       A\n",
       "48.7    S_2   C_4  2402      M  street_7     166      82       B\n",
       "59.7    S_2   C_4  2403      F  street_6     158      60      B+\n",
       "67.7    S_2   C_4  2404      F  street_2     160      84       B\n",
       "47.6    S_2   C_4  2405      F  street_6     193      54       B"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#索引排序之设置索引\n",
    "df.set_index('Math')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>School</th>\n",
       "      <th>Class</th>\n",
       "      <th>ID</th>\n",
       "      <th>Gender</th>\n",
       "      <th>Address</th>\n",
       "      <th>Height</th>\n",
       "      <th>Weight</th>\n",
       "      <th>Physics</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Math</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>31.5</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_3</td>\n",
       "      <td>1301</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>161</td>\n",
       "      <td>68</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32.5</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1102</td>\n",
       "      <td>F</td>\n",
       "      <td>street_2</td>\n",
       "      <td>192</td>\n",
       "      <td>73</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32.7</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_3</td>\n",
       "      <td>2302</td>\n",
       "      <td>M</td>\n",
       "      <td>street_5</td>\n",
       "      <td>171</td>\n",
       "      <td>88</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33.8</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_2</td>\n",
       "      <td>1204</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>162</td>\n",
       "      <td>63</td>\n",
       "      <td>B</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34.0</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_1</td>\n",
       "      <td>173</td>\n",
       "      <td>63</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     School Class    ID Gender   Address  Height  Weight Physics\n",
       "Math                                                            \n",
       "31.5    S_1   C_3  1301      M  street_4     161      68      B+\n",
       "32.5    S_1   C_1  1102      F  street_2     192      73      B+\n",
       "32.7    S_2   C_3  2302      M  street_5     171      88       A\n",
       "33.8    S_1   C_2  1204      F  street_5     162      63       B\n",
       "34.0    S_1   C_1  1101      M  street_1     173      63      A+"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.set_index('Math').sort_index().head() #可以设置ascending参数，默认为升序，True"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>School</th>\n",
       "      <th>Class</th>\n",
       "      <th>ID</th>\n",
       "      <th>Gender</th>\n",
       "      <th>Address</th>\n",
       "      <th>Height</th>\n",
       "      <th>Weight</th>\n",
       "      <th>Math</th>\n",
       "      <th>Physics</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>S_1</td>\n",
       "      <td>C_1</td>\n",
       "      <td>1101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_1</td>\n",
       "      <td>173</td>\n",
       "      <td>63</td>\n",
       "      <td>34.0</td>\n",
       "      <td>A+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2105</td>\n",
       "      <td>M</td>\n",
       "      <td>street_4</td>\n",
       "      <td>170</td>\n",
       "      <td>81</td>\n",
       "      <td>34.2</td>\n",
       "      <td>A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2104</td>\n",
       "      <td>F</td>\n",
       "      <td>street_5</td>\n",
       "      <td>159</td>\n",
       "      <td>97</td>\n",
       "      <td>72.2</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2102</td>\n",
       "      <td>F</td>\n",
       "      <td>street_6</td>\n",
       "      <td>161</td>\n",
       "      <td>61</td>\n",
       "      <td>50.6</td>\n",
       "      <td>B+</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>S_2</td>\n",
       "      <td>C_1</td>\n",
       "      <td>2101</td>\n",
       "      <td>M</td>\n",
       "      <td>street_7</td>\n",
       "      <td>174</td>\n",
       "      <td>84</td>\n",
       "      <td>83.3</td>\n",
       "      <td>C</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   School Class    ID Gender   Address  Height  Weight  Math Physics\n",
       "0     S_1   C_1  1101      M  street_1     173      63  34.0      A+\n",
       "19    S_2   C_1  2105      M  street_4     170      81  34.2       A\n",
       "18    S_2   C_1  2104      F  street_5     159      97  72.2      B+\n",
       "16    S_2   C_1  2102      F  street_6     161      61  50.6      B+\n",
       "15    S_2   C_1  2101      M  street_7     174      84  83.3       C"
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#值排序\n",
    "df.sort_values(by='Class').head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "作业1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [],
   "source": [
    "df =pd.read_csv(r\"C:\\Users\\闫厚镇\\Desktop\\datawhale学习\\data\\Game_of_Thrones_Script.csv\",encoding=\"utf-8\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "564"
      ]
     },
     "execution_count": 74,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['Name'].nunique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Release Date</th>\n",
       "      <th>Season</th>\n",
       "      <th>Episode</th>\n",
       "      <th>Episode Title</th>\n",
       "      <th>Name</th>\n",
       "      <th>Sentence</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>waymar royce</td>\n",
       "      <td>What do you expect? They're savages. One lot s...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>will</td>\n",
       "      <td>I've never seen wildlings do a thing like this...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>waymar royce</td>\n",
       "      <td>How close did you get?</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>will</td>\n",
       "      <td>Close as any man would.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>gared</td>\n",
       "      <td>We should head back to the wall.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>royce</td>\n",
       "      <td>Do the dead frighten you?</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>gared</td>\n",
       "      <td>Our orders were to track the wildlings. We tra...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>royce</td>\n",
       "      <td>You don't think he'll ask us how they died? Ge...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>will</td>\n",
       "      <td>Whatever did it to them could do it to us. The...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>royce</td>\n",
       "      <td>It's a good thing we're not children. You want...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>royce</td>\n",
       "      <td>Your dead men seem to have moved camp.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>will</td>\n",
       "      <td>They were here.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>gared</td>\n",
       "      <td>See where they went.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>royce</td>\n",
       "      <td>What is it?</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>gared</td>\n",
       "      <td>It's …</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>jon snow</td>\n",
       "      <td>Go on. Father's watching.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>jon snow</td>\n",
       "      <td>And your mother.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>septa mordane</td>\n",
       "      <td>Fine work, as always. Well done.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>sansa stark</td>\n",
       "      <td>Thank you.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>septa mordane</td>\n",
       "      <td>I love the detail that you've managed to get i...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>eddard stark</td>\n",
       "      <td>And which one of you was a marksman at ten? Ke...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>jon snow</td>\n",
       "      <td>Don't think too much, Bran.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>robb stark</td>\n",
       "      <td>Relax your bow arm.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>jonrobb</td>\n",
       "      <td>Quick, Bran, faster!</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>cassel</td>\n",
       "      <td>Lord Stark. My lady. A guardsman just rode in ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>eddard stark</td>\n",
       "      <td>Get the lads to saddle their horses.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>catelyn stark</td>\n",
       "      <td>Do you have to?</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>eddard stark</td>\n",
       "      <td>He swore an oath, Cat.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>cassel</td>\n",
       "      <td>The law is law, my lady.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>eddard stark</td>\n",
       "      <td>Tell Bran he's coming, too.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23881</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>As you wish, Your Grace.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23882</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>brienne</td>\n",
       "      <td>Ser Podrick.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23883</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>We serve at your pleasure, King Bran the Broke...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23884</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>sam</td>\n",
       "      <td>Long may he reign.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23885</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>davos</td>\n",
       "      <td>Long may he reign.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23886</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>brienne</td>\n",
       "      <td>Long may he reign.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23887</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>Long may he reign.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23888</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>That will improve.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23889</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bran stark</td>\n",
       "      <td>I'm sure it will.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23890</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>Ser Bronn of the Blackwater, Lord of Highgarde...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23891</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>In full, my lord Hand.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23892</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>Good. Time to start incurring a new one. We ha...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23893</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>Indeed we can.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23894</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>Lord Davos, we have an armada to rebuild and p...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23895</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>davos</td>\n",
       "      <td>We have. These projects will begin as soon as ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23896</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>The Master of Coin looks forward to helping th...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23897</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>davos</td>\n",
       "      <td>Any more.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23898</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>You Master of Grammar now too?</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23899</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>Grandmaester, ahem, it is my theory, based on ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23900</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>sam</td>\n",
       "      <td>The Archmaester has done some research on this...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23901</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>The strong live and the weak don't.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23902</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>Find the best builders and set them to the task.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23903</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>Oh, speaking of builders, all the best brothel...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23904</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>sam</td>\n",
       "      <td>Uh... the Archmaester is less than enthusiasti...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23905</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>Well, I imagine he isn't using them properly.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23906</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>brienne</td>\n",
       "      <td>I think we can all agree that ships take prece...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23907</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>bronn</td>\n",
       "      <td>I think that's a very presumptuous statement.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23908</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>tyrion lannister</td>\n",
       "      <td>I once brought a jackass and a honeycomb into ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23909</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>man</td>\n",
       "      <td>The Queen in the North!</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23910</th>\n",
       "      <td>2019/5/19</td>\n",
       "      <td>Season 8</td>\n",
       "      <td>Episode 6</td>\n",
       "      <td>The Iron Throne</td>\n",
       "      <td>all</td>\n",
       "      <td>The Queen in the North! The Queen in the North...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>23911 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      Release Date    Season    Episode     Episode Title              Name  \\\n",
       "0        2011/4/17  Season 1  Episode 1  Winter is Coming      waymar royce   \n",
       "1        2011/4/17  Season 1  Episode 1  Winter is Coming              will   \n",
       "2        2011/4/17  Season 1  Episode 1  Winter is Coming      waymar royce   \n",
       "3        2011/4/17  Season 1  Episode 1  Winter is Coming              will   \n",
       "4        2011/4/17  Season 1  Episode 1  Winter is Coming             gared   \n",
       "5        2011/4/17  Season 1  Episode 1  Winter is Coming             royce   \n",
       "6        2011/4/17  Season 1  Episode 1  Winter is Coming             gared   \n",
       "7        2011/4/17  Season 1  Episode 1  Winter is Coming             royce   \n",
       "8        2011/4/17  Season 1  Episode 1  Winter is Coming              will   \n",
       "9        2011/4/17  Season 1  Episode 1  Winter is Coming             royce   \n",
       "10       2011/4/17  Season 1  Episode 1  Winter is Coming             royce   \n",
       "11       2011/4/17  Season 1  Episode 1  Winter is Coming              will   \n",
       "12       2011/4/17  Season 1  Episode 1  Winter is Coming             gared   \n",
       "13       2011/4/17  Season 1  Episode 1  Winter is Coming             royce   \n",
       "14       2011/4/17  Season 1  Episode 1  Winter is Coming             gared   \n",
       "15       2011/4/17  Season 1  Episode 1  Winter is Coming          jon snow   \n",
       "16       2011/4/17  Season 1  Episode 1  Winter is Coming          jon snow   \n",
       "17       2011/4/17  Season 1  Episode 1  Winter is Coming     septa mordane   \n",
       "18       2011/4/17  Season 1  Episode 1  Winter is Coming       sansa stark   \n",
       "19       2011/4/17  Season 1  Episode 1  Winter is Coming     septa mordane   \n",
       "20       2011/4/17  Season 1  Episode 1  Winter is Coming      eddard stark   \n",
       "21       2011/4/17  Season 1  Episode 1  Winter is Coming          jon snow   \n",
       "22       2011/4/17  Season 1  Episode 1  Winter is Coming        robb stark   \n",
       "23       2011/4/17  Season 1  Episode 1  Winter is Coming           jonrobb   \n",
       "24       2011/4/17  Season 1  Episode 1  Winter is Coming            cassel   \n",
       "25       2011/4/17  Season 1  Episode 1  Winter is Coming      eddard stark   \n",
       "26       2011/4/17  Season 1  Episode 1  Winter is Coming     catelyn stark   \n",
       "27       2011/4/17  Season 1  Episode 1  Winter is Coming      eddard stark   \n",
       "28       2011/4/17  Season 1  Episode 1  Winter is Coming            cassel   \n",
       "29       2011/4/17  Season 1  Episode 1  Winter is Coming      eddard stark   \n",
       "...            ...       ...        ...               ...               ...   \n",
       "23881    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23882    2019/5/19  Season 8  Episode 6   The Iron Throne           brienne   \n",
       "23883    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23884    2019/5/19  Season 8  Episode 6   The Iron Throne               sam   \n",
       "23885    2019/5/19  Season 8  Episode 6   The Iron Throne             davos   \n",
       "23886    2019/5/19  Season 8  Episode 6   The Iron Throne           brienne   \n",
       "23887    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23888    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23889    2019/5/19  Season 8  Episode 6   The Iron Throne        bran stark   \n",
       "23890    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23891    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23892    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23893    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23894    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23895    2019/5/19  Season 8  Episode 6   The Iron Throne             davos   \n",
       "23896    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23897    2019/5/19  Season 8  Episode 6   The Iron Throne             davos   \n",
       "23898    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23899    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23900    2019/5/19  Season 8  Episode 6   The Iron Throne               sam   \n",
       "23901    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23902    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23903    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23904    2019/5/19  Season 8  Episode 6   The Iron Throne               sam   \n",
       "23905    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23906    2019/5/19  Season 8  Episode 6   The Iron Throne           brienne   \n",
       "23907    2019/5/19  Season 8  Episode 6   The Iron Throne             bronn   \n",
       "23908    2019/5/19  Season 8  Episode 6   The Iron Throne  tyrion lannister   \n",
       "23909    2019/5/19  Season 8  Episode 6   The Iron Throne               man   \n",
       "23910    2019/5/19  Season 8  Episode 6   The Iron Throne               all   \n",
       "\n",
       "                                                Sentence  \n",
       "0      What do you expect? They're savages. One lot s...  \n",
       "1      I've never seen wildlings do a thing like this...  \n",
       "2                                 How close did you get?  \n",
       "3                                Close as any man would.  \n",
       "4                       We should head back to the wall.  \n",
       "5                              Do the dead frighten you?  \n",
       "6      Our orders were to track the wildlings. We tra...  \n",
       "7      You don't think he'll ask us how they died? Ge...  \n",
       "8      Whatever did it to them could do it to us. The...  \n",
       "9      It's a good thing we're not children. You want...  \n",
       "10                Your dead men seem to have moved camp.  \n",
       "11                                       They were here.  \n",
       "12                                  See where they went.  \n",
       "13                                           What is it?  \n",
       "14                                                It's …  \n",
       "15                             Go on. Father's watching.  \n",
       "16                                      And your mother.  \n",
       "17                      Fine work, as always. Well done.  \n",
       "18                                            Thank you.  \n",
       "19     I love the detail that you've managed to get i...  \n",
       "20     And which one of you was a marksman at ten? Ke...  \n",
       "21                           Don't think too much, Bran.  \n",
       "22                                   Relax your bow arm.  \n",
       "23                                  Quick, Bran, faster!  \n",
       "24     Lord Stark. My lady. A guardsman just rode in ...  \n",
       "25                  Get the lads to saddle their horses.  \n",
       "26                                       Do you have to?  \n",
       "27                                He swore an oath, Cat.  \n",
       "28                              The law is law, my lady.  \n",
       "29                           Tell Bran he's coming, too.  \n",
       "...                                                  ...  \n",
       "23881                           As you wish, Your Grace.  \n",
       "23882                                       Ser Podrick.  \n",
       "23883  We serve at your pleasure, King Bran the Broke...  \n",
       "23884                                 Long may he reign.  \n",
       "23885                                 Long may he reign.  \n",
       "23886                                 Long may he reign.  \n",
       "23887                                 Long may he reign.  \n",
       "23888                                 That will improve.  \n",
       "23889                                  I'm sure it will.  \n",
       "23890  Ser Bronn of the Blackwater, Lord of Highgarde...  \n",
       "23891                             In full, my lord Hand.  \n",
       "23892  Good. Time to start incurring a new one. We ha...  \n",
       "23893                                     Indeed we can.  \n",
       "23894  Lord Davos, we have an armada to rebuild and p...  \n",
       "23895  We have. These projects will begin as soon as ...  \n",
       "23896  The Master of Coin looks forward to helping th...  \n",
       "23897                                          Any more.  \n",
       "23898                     You Master of Grammar now too?  \n",
       "23899  Grandmaester, ahem, it is my theory, based on ...  \n",
       "23900  The Archmaester has done some research on this...  \n",
       "23901                The strong live and the weak don't.  \n",
       "23902   Find the best builders and set them to the task.  \n",
       "23903  Oh, speaking of builders, all the best brothel...  \n",
       "23904  Uh... the Archmaester is less than enthusiasti...  \n",
       "23905      Well, I imagine he isn't using them properly.  \n",
       "23906  I think we can all agree that ships take prece...  \n",
       "23907      I think that's a very presumptuous statement.  \n",
       "23908  I once brought a jackass and a honeycomb into ...  \n",
       "23909                            The Queen in the North!  \n",
       "23910  The Queen in the North! The Queen in the North...  \n",
       "\n",
       "[23911 rows x 6 columns]"
      ]
     },
     "execution_count": 75,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'tyrion lannister'"
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['Name'].value_counts().index[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [],
   "source": [
    "#首先衡量有多少个单词 \n",
    "df_words =df.assign(Words = df['Sentence'].apply(lambda x :len(x.split()))).sort_values(by='Name')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Release Date</th>\n",
       "      <th>Season</th>\n",
       "      <th>Episode</th>\n",
       "      <th>Episode Title</th>\n",
       "      <th>Name</th>\n",
       "      <th>Sentence</th>\n",
       "      <th>Words</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>276</th>\n",
       "      <td>2011/4/17</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 1</td>\n",
       "      <td>Winter is Coming</td>\n",
       "      <td>a voice</td>\n",
       "      <td>It's Maester Luwin, my lord.</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3012</th>\n",
       "      <td>2011/6/19</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 10</td>\n",
       "      <td>Fire and Blood</td>\n",
       "      <td>addam marbrand</td>\n",
       "      <td>ls it true about Stannis and Renly?</td>\n",
       "      <td>7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3017</th>\n",
       "      <td>2011/6/19</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 10</td>\n",
       "      <td>Fire and Blood</td>\n",
       "      <td>addam marbrand</td>\n",
       "      <td>Kevan Lannister</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13610</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>And what is it that couldn't wait until mornin...</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13614</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Oh, no need. I know my way around this library...</td>\n",
       "      <td>48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14743</th>\n",
       "      <td>2015/4/19</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The House of Black and White</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Samwell Tarly. Go on.</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14741</th>\n",
       "      <td>2015/4/19</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The House of Black and White</td>\n",
       "      <td>aemon</td>\n",
       "      <td>If there's no one else, we will begin the voti...</td>\n",
       "      <td>28</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14739</th>\n",
       "      <td>2015/4/19</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The House of Black and White</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Is there anyone else?</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13616</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Ah, the Wildlings. I can assure you that the c...</td>\n",
       "      <td>21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14735</th>\n",
       "      <td>2015/4/19</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The House of Black and White</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Does anyone wish to speak for candidates befor...</td>\n",
       "      <td>21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13618</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Yes. Imagine the stories Wildlings tell about ...</td>\n",
       "      <td>56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13620</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Yes you do.</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13622</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Yes you do! I heard it in your voice when you ...</td>\n",
       "      <td>26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13624</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>You can imagine all manner of horrors befallin...</td>\n",
       "      <td>31</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13626</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>You know who I was before I came here? What I ...</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13612</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>That it was you? Who else but Samwell Tarly wo...</td>\n",
       "      <td>21</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14752</th>\n",
       "      <td>2015/4/19</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The House of Black and White</td>\n",
       "      <td>aemon</td>\n",
       "      <td>It is time.</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15467</th>\n",
       "      <td>2015/5/10</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>Kill the Boy</td>\n",
       "      <td>aemon</td>\n",
       "      <td>A Targaryen, alone in the world, is a terrible...</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13944</th>\n",
       "      <td>2014/6/15</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 10</td>\n",
       "      <td>The Children</td>\n",
       "      <td>aemon</td>\n",
       "      <td>They came to us from White Harbor and Barrowto...</td>\n",
       "      <td>51</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13628</th>\n",
       "      <td>2014/6/8</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 9</td>\n",
       "      <td>The Watchers on the Wall</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Ah ha. I could tell you everything about her. ...</td>\n",
       "      <td>70</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13946</th>\n",
       "      <td>2014/6/15</td>\n",
       "      <td>Season 4</td>\n",
       "      <td>Episode 10</td>\n",
       "      <td>The Children</td>\n",
       "      <td>aemon</td>\n",
       "      <td>And now their watch is ended.</td>\n",
       "      <td>6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16088</th>\n",
       "      <td>2015/5/24</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 7</td>\n",
       "      <td>The Gift</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Egg! Egg.. I dreamed... that I was old</td>\n",
       "      <td>8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16083</th>\n",
       "      <td>2015/5/24</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 7</td>\n",
       "      <td>The Gift</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Egg! Egg! Mothers looking for you! Egg!</td>\n",
       "      <td>7</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16064</th>\n",
       "      <td>2015/5/24</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 7</td>\n",
       "      <td>The Gift</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Get him south, Gillyflower. Before it's too late.</td>\n",
       "      <td>8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16063</th>\n",
       "      <td>2015/5/24</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 7</td>\n",
       "      <td>The Gift</td>\n",
       "      <td>aemon</td>\n",
       "      <td>And before that, he was a jolly fellow. Like t...</td>\n",
       "      <td>11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16061</th>\n",
       "      <td>2015/5/24</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 7</td>\n",
       "      <td>The Gift</td>\n",
       "      <td>aemon</td>\n",
       "      <td>There he is. That laugh. Egg! Egg laughed like...</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15476</th>\n",
       "      <td>2015/5/10</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>Kill the Boy</td>\n",
       "      <td>aemon</td>\n",
       "      <td>That doesn't matter. You do. You will find lit...</td>\n",
       "      <td>47</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15474</th>\n",
       "      <td>2015/5/10</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>Kill the Boy</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Half the men hate you already, Lord Commander....</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15472</th>\n",
       "      <td>2015/5/10</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>Kill the Boy</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Oh, like a hundred-year-old man slowly freezin...</td>\n",
       "      <td>9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15469</th>\n",
       "      <td>2015/5/10</td>\n",
       "      <td>Season 5</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>Kill the Boy</td>\n",
       "      <td>aemon</td>\n",
       "      <td>Lord Commander.</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3601</th>\n",
       "      <td>2012/4/8</td>\n",
       "      <td>Season 2</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The Night Lands</td>\n",
       "      <td>yoren</td>\n",
       "      <td>Well the thing is, , these gutter rats belong ...</td>\n",
       "      <td>24</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1617</th>\n",
       "      <td>2011/5/15</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>The Wolf and the Lion</td>\n",
       "      <td>yoren</td>\n",
       "      <td>It's about your wife, my Lord. She's taken the...</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>894</th>\n",
       "      <td>2011/5/1</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 3</td>\n",
       "      <td>Lord Snow</td>\n",
       "      <td>yoren</td>\n",
       "      <td>Into the tunnel and out the other side. He'll ...</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>896</th>\n",
       "      <td>2011/5/1</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 3</td>\n",
       "      <td>Lord Snow</td>\n",
       "      <td>yoren</td>\n",
       "      <td>Day after tomorrow. I get about half of my rec...</td>\n",
       "      <td>13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>898</th>\n",
       "      <td>2011/5/1</td>\n",
       "      <td>Season 1</td>\n",
       "      <td>Episode 3</td>\n",
       "      <td>Lord Snow</td>\n",
       "      <td>yoren</td>\n",
       "      <td>I travel a bit on the grubby side, my Lord.</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3597</th>\n",
       "      <td>2012/4/8</td>\n",
       "      <td>Season 2</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The Night Lands</td>\n",
       "      <td>yoren</td>\n",
       "      <td>You're a long way from home.</td>\n",
       "      <td>6</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3599</th>\n",
       "      <td>2012/4/8</td>\n",
       "      <td>Season 2</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>The Night Lands</td>\n",
       "      <td>yoren</td>\n",
       "      <td>Aye, you did. You asked without manners. And I...</td>\n",
       "      <td>13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17382</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young benjen</td>\n",
       "      <td>But he's got giant's blood</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17378</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young benjen</td>\n",
       "      <td>I don't know</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17374</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young benjen</td>\n",
       "      <td>Lyanna!</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17376</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young benjen</td>\n",
       "      <td>Would you get out of here? We're sparring</td>\n",
       "      <td>8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18621</th>\n",
       "      <td>2016/5/22</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>The Door</td>\n",
       "      <td>young hodor</td>\n",
       "      <td>Hold the door! Hold the door! Hold the door! H...</td>\n",
       "      <td>18</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18620</th>\n",
       "      <td>2016/5/22</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>The Door</td>\n",
       "      <td>young hodor</td>\n",
       "      <td>Hold the door!</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17387</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young hodor</td>\n",
       "      <td>You leave the fighting to the little lords, Wy...</td>\n",
       "      <td>17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17385</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young hodor</td>\n",
       "      <td>And lowers it when he's going to dodge, my lady</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18622</th>\n",
       "      <td>2016/5/22</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>The Door</td>\n",
       "      <td>young hodor</td>\n",
       "      <td>Hold the door! Hold the door! Hold the door! H...</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17377</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young lyanna</td>\n",
       "      <td>Who are you gonna spar with when Ned goes off ...</td>\n",
       "      <td>13</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17379</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young lyanna</td>\n",
       "      <td>What about him?</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17384</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young lyanna</td>\n",
       "      <td>Benjen always lifts his chin when he's about t...</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19225</th>\n",
       "      <td>2016/6/12</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 8</td>\n",
       "      <td>No One</td>\n",
       "      <td>young man</td>\n",
       "      <td>I'm ready.</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19223</th>\n",
       "      <td>2016/6/12</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 8</td>\n",
       "      <td>No One</td>\n",
       "      <td>young man</td>\n",
       "      <td>Course we do.</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19234</th>\n",
       "      <td>2016/6/12</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 8</td>\n",
       "      <td>No One</td>\n",
       "      <td>young man</td>\n",
       "      <td>Fuck you! Disgusting old twats.</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19235</th>\n",
       "      <td>2016/6/12</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 8</td>\n",
       "      <td>No One</td>\n",
       "      <td>young man</td>\n",
       "      <td>Got off on that, did you, you old fuck?</td>\n",
       "      <td>9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17388</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young ned</td>\n",
       "      <td>Oh, Nan, look at the size of him If he ever le...</td>\n",
       "      <td>17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17370</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young ned</td>\n",
       "      <td>Keep your shield up or I'll ring your head lik...</td>\n",
       "      <td>12</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18599</th>\n",
       "      <td>2016/5/22</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 5</td>\n",
       "      <td>The Door</td>\n",
       "      <td>young ned</td>\n",
       "      <td>Yes, Father.</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17373</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young ned</td>\n",
       "      <td>Stop showing off</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17383</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young ned</td>\n",
       "      <td>And you've got training Sounds like a fair mat...</td>\n",
       "      <td>11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17380</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young ned</td>\n",
       "      <td>Wylis, come here</td>\n",
       "      <td>3</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17368</th>\n",
       "      <td>2016/5/1</td>\n",
       "      <td>Season 6</td>\n",
       "      <td>Episode 2</td>\n",
       "      <td>Home</td>\n",
       "      <td>young rodrik</td>\n",
       "      <td>Give him another go, Ned</td>\n",
       "      <td>5</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>23911 rows × 7 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      Release Date    Season     Episode                 Episode Title  \\\n",
       "276      2011/4/17  Season 1   Episode 1              Winter is Coming   \n",
       "3012     2011/6/19  Season 1  Episode 10                Fire and Blood   \n",
       "3017     2011/6/19  Season 1  Episode 10                Fire and Blood   \n",
       "13610     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13614     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "14743    2015/4/19  Season 5   Episode 2  The House of Black and White   \n",
       "14741    2015/4/19  Season 5   Episode 2  The House of Black and White   \n",
       "14739    2015/4/19  Season 5   Episode 2  The House of Black and White   \n",
       "13616     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "14735    2015/4/19  Season 5   Episode 2  The House of Black and White   \n",
       "13618     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13620     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13622     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13624     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13626     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13612     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "14752    2015/4/19  Season 5   Episode 2  The House of Black and White   \n",
       "15467    2015/5/10  Season 5   Episode 5                  Kill the Boy   \n",
       "13944    2014/6/15  Season 4  Episode 10                  The Children   \n",
       "13628     2014/6/8  Season 4   Episode 9      The Watchers on the Wall   \n",
       "13946    2014/6/15  Season 4  Episode 10                  The Children   \n",
       "16088    2015/5/24  Season 5   Episode 7                      The Gift   \n",
       "16083    2015/5/24  Season 5   Episode 7                      The Gift   \n",
       "16064    2015/5/24  Season 5   Episode 7                      The Gift   \n",
       "16063    2015/5/24  Season 5   Episode 7                      The Gift   \n",
       "16061    2015/5/24  Season 5   Episode 7                      The Gift   \n",
       "15476    2015/5/10  Season 5   Episode 5                  Kill the Boy   \n",
       "15474    2015/5/10  Season 5   Episode 5                  Kill the Boy   \n",
       "15472    2015/5/10  Season 5   Episode 5                  Kill the Boy   \n",
       "15469    2015/5/10  Season 5   Episode 5                  Kill the Boy   \n",
       "...            ...       ...         ...                           ...   \n",
       "3601      2012/4/8  Season 2   Episode 2               The Night Lands   \n",
       "1617     2011/5/15  Season 1   Episode 5         The Wolf and the Lion   \n",
       "894       2011/5/1  Season 1   Episode 3                     Lord Snow   \n",
       "896       2011/5/1  Season 1   Episode 3                     Lord Snow   \n",
       "898       2011/5/1  Season 1   Episode 3                     Lord Snow   \n",
       "3597      2012/4/8  Season 2   Episode 2               The Night Lands   \n",
       "3599      2012/4/8  Season 2   Episode 2               The Night Lands   \n",
       "17382     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17378     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17374     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17376     2016/5/1  Season 6   Episode 2                          Home   \n",
       "18621    2016/5/22  Season 6   Episode 5                      The Door   \n",
       "18620    2016/5/22  Season 6   Episode 5                      The Door   \n",
       "17387     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17385     2016/5/1  Season 6   Episode 2                          Home   \n",
       "18622    2016/5/22  Season 6   Episode 5                      The Door   \n",
       "17377     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17379     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17384     2016/5/1  Season 6   Episode 2                          Home   \n",
       "19225    2016/6/12  Season 6   Episode 8                        No One   \n",
       "19223    2016/6/12  Season 6   Episode 8                        No One   \n",
       "19234    2016/6/12  Season 6   Episode 8                        No One   \n",
       "19235    2016/6/12  Season 6   Episode 8                        No One   \n",
       "17388     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17370     2016/5/1  Season 6   Episode 2                          Home   \n",
       "18599    2016/5/22  Season 6   Episode 5                      The Door   \n",
       "17373     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17383     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17380     2016/5/1  Season 6   Episode 2                          Home   \n",
       "17368     2016/5/1  Season 6   Episode 2                          Home   \n",
       "\n",
       "                 Name                                           Sentence  \\\n",
       "276           a voice                       It's Maester Luwin, my lord.   \n",
       "3012   addam marbrand                ls it true about Stannis and Renly?   \n",
       "3017   addam marbrand                                    Kevan Lannister   \n",
       "13610           aemon  And what is it that couldn't wait until mornin...   \n",
       "13614           aemon  Oh, no need. I know my way around this library...   \n",
       "14743           aemon                              Samwell Tarly. Go on.   \n",
       "14741           aemon  If there's no one else, we will begin the voti...   \n",
       "14739           aemon                              Is there anyone else?   \n",
       "13616           aemon  Ah, the Wildlings. I can assure you that the c...   \n",
       "14735           aemon  Does anyone wish to speak for candidates befor...   \n",
       "13618           aemon  Yes. Imagine the stories Wildlings tell about ...   \n",
       "13620           aemon                                        Yes you do.   \n",
       "13622           aemon  Yes you do! I heard it in your voice when you ...   \n",
       "13624           aemon  You can imagine all manner of horrors befallin...   \n",
       "13626           aemon  You know who I was before I came here? What I ...   \n",
       "13612           aemon  That it was you? Who else but Samwell Tarly wo...   \n",
       "14752           aemon                                        It is time.   \n",
       "15467           aemon  A Targaryen, alone in the world, is a terrible...   \n",
       "13944           aemon  They came to us from White Harbor and Barrowto...   \n",
       "13628           aemon  Ah ha. I could tell you everything about her. ...   \n",
       "13946           aemon                      And now their watch is ended.   \n",
       "16088           aemon             Egg! Egg.. I dreamed... that I was old   \n",
       "16083           aemon            Egg! Egg! Mothers looking for you! Egg!   \n",
       "16064           aemon  Get him south, Gillyflower. Before it's too late.   \n",
       "16063           aemon  And before that, he was a jolly fellow. Like t...   \n",
       "16061           aemon  There he is. That laugh. Egg! Egg laughed like...   \n",
       "15476           aemon  That doesn't matter. You do. You will find lit...   \n",
       "15474           aemon  Half the men hate you already, Lord Commander....   \n",
       "15472           aemon  Oh, like a hundred-year-old man slowly freezin...   \n",
       "15469           aemon                                    Lord Commander.   \n",
       "...               ...                                                ...   \n",
       "3601            yoren  Well the thing is, , these gutter rats belong ...   \n",
       "1617            yoren  It's about your wife, my Lord. She's taken the...   \n",
       "894             yoren  Into the tunnel and out the other side. He'll ...   \n",
       "896             yoren  Day after tomorrow. I get about half of my rec...   \n",
       "898             yoren        I travel a bit on the grubby side, my Lord.   \n",
       "3597            yoren                       You're a long way from home.   \n",
       "3599            yoren  Aye, you did. You asked without manners. And I...   \n",
       "17382    young benjen                         But he's got giant's blood   \n",
       "17378    young benjen                                       I don't know   \n",
       "17374    young benjen                                            Lyanna!   \n",
       "17376    young benjen          Would you get out of here? We're sparring   \n",
       "18621     young hodor  Hold the door! Hold the door! Hold the door! H...   \n",
       "18620     young hodor                                     Hold the door!   \n",
       "17387     young hodor  You leave the fighting to the little lords, Wy...   \n",
       "17385     young hodor    And lowers it when he's going to dodge, my lady   \n",
       "18622     young hodor  Hold the door! Hold the door! Hold the door! H...   \n",
       "17377    young lyanna  Who are you gonna spar with when Ned goes off ...   \n",
       "17379    young lyanna                                    What about him?   \n",
       "17384    young lyanna  Benjen always lifts his chin when he's about t...   \n",
       "19225       young man                                         I'm ready.   \n",
       "19223       young man                                      Course we do.   \n",
       "19234       young man                    Fuck you! Disgusting old twats.   \n",
       "19235       young man            Got off on that, did you, you old fuck?   \n",
       "17388       young ned  Oh, Nan, look at the size of him If he ever le...   \n",
       "17370       young ned  Keep your shield up or I'll ring your head lik...   \n",
       "18599       young ned                                       Yes, Father.   \n",
       "17373       young ned                                   Stop showing off   \n",
       "17383       young ned  And you've got training Sounds like a fair mat...   \n",
       "17380       young ned                                   Wylis, come here   \n",
       "17368    young rodrik                           Give him another go, Ned   \n",
       "\n",
       "       Words  \n",
       "276        5  \n",
       "3012       7  \n",
       "3017       2  \n",
       "13610     10  \n",
       "13614     48  \n",
       "14743      4  \n",
       "14741     28  \n",
       "14739      4  \n",
       "13616     21  \n",
       "14735     21  \n",
       "13618     56  \n",
       "13620      3  \n",
       "13622     26  \n",
       "13624     31  \n",
       "13626     59  \n",
       "13612     21  \n",
       "14752      3  \n",
       "15467     10  \n",
       "13944     51  \n",
       "13628     70  \n",
       "13946      6  \n",
       "16088      8  \n",
       "16083      7  \n",
       "16064      8  \n",
       "16063     11  \n",
       "16061     19  \n",
       "15476     47  \n",
       "15474     10  \n",
       "15472      9  \n",
       "15469      2  \n",
       "...      ...  \n",
       "3601      24  \n",
       "1617      10  \n",
       "894       19  \n",
       "896       13  \n",
       "898       10  \n",
       "3597       6  \n",
       "3599      13  \n",
       "17382      5  \n",
       "17378      3  \n",
       "17374      1  \n",
       "17376      8  \n",
       "18621     18  \n",
       "18620      3  \n",
       "17387     17  \n",
       "17385     10  \n",
       "18622     39  \n",
       "17377     13  \n",
       "17379      3  \n",
       "17384     10  \n",
       "19225      2  \n",
       "19223      3  \n",
       "19234      5  \n",
       "19235      9  \n",
       "17388     17  \n",
       "17370     12  \n",
       "18599      2  \n",
       "17373      3  \n",
       "17383     11  \n",
       "17380      3  \n",
       "17368      5  \n",
       "\n",
       "[23911 rows x 7 columns]"
      ]
     },
     "execution_count": 79,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_words"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "metadata": {},
   "outputs": [],
   "source": [
    "#用分组做更好\n",
    "N_words = list(zip(df_words['Name'],df_words['Words']))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#哪种action_type和combined_shot_type的组合是最多的？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "metadata": {},
   "outputs": [],
   "source": [
    "df =pd.read_csv(r\"C:\\Users\\闫厚镇\\Desktop\\datawhale学习\\data\\Kobe_data.csv\",encoding=\"utf-8\",index_col='shot_id')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>action_type</th>\n",
       "      <th>combined_shot_type</th>\n",
       "      <th>game_event_id</th>\n",
       "      <th>game_id</th>\n",
       "      <th>lat</th>\n",
       "      <th>loc_x</th>\n",
       "      <th>loc_y</th>\n",
       "      <th>lon</th>\n",
       "      <th>minutes_remaining</th>\n",
       "      <th>period</th>\n",
       "      <th>...</th>\n",
       "      <th>shot_made_flag</th>\n",
       "      <th>shot_type</th>\n",
       "      <th>shot_zone_area</th>\n",
       "      <th>shot_zone_basic</th>\n",
       "      <th>shot_zone_range</th>\n",
       "      <th>team_id</th>\n",
       "      <th>team_name</th>\n",
       "      <th>game_date</th>\n",
       "      <th>matchup</th>\n",
       "      <th>opponent</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>shot_id</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>10</td>\n",
       "      <td>20000012</td>\n",
       "      <td>33.9723</td>\n",
       "      <td>167</td>\n",
       "      <td>72</td>\n",
       "      <td>-118.1028</td>\n",
       "      <td>10</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side(R)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>12</td>\n",
       "      <td>20000012</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>-157</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.4268</td>\n",
       "      <td>10</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>35</td>\n",
       "      <td>20000012</td>\n",
       "      <td>33.9093</td>\n",
       "      <td>-101</td>\n",
       "      <td>135</td>\n",
       "      <td>-118.3708</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>43</td>\n",
       "      <td>20000012</td>\n",
       "      <td>33.8693</td>\n",
       "      <td>138</td>\n",
       "      <td>175</td>\n",
       "      <td>-118.1318</td>\n",
       "      <td>6</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side Center(RC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Driving Dunk Shot</td>\n",
       "      <td>Dunk</td>\n",
       "      <td>155</td>\n",
       "      <td>20000012</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>244</td>\n",
       "      <td>20000012</td>\n",
       "      <td>34.0553</td>\n",
       "      <td>-145</td>\n",
       "      <td>-11</td>\n",
       "      <td>-118.4148</td>\n",
       "      <td>9</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>251</td>\n",
       "      <td>20000012</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>8</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>254</td>\n",
       "      <td>20000012</td>\n",
       "      <td>34.0163</td>\n",
       "      <td>1</td>\n",
       "      <td>28</td>\n",
       "      <td>-118.2688</td>\n",
       "      <td>8</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>265</td>\n",
       "      <td>20000012</td>\n",
       "      <td>33.9363</td>\n",
       "      <td>-65</td>\n",
       "      <td>108</td>\n",
       "      <td>-118.3348</td>\n",
       "      <td>6</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>294</td>\n",
       "      <td>20000012</td>\n",
       "      <td>33.9193</td>\n",
       "      <td>-33</td>\n",
       "      <td>125</td>\n",
       "      <td>-118.3028</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>309</td>\n",
       "      <td>20000012</td>\n",
       "      <td>33.8063</td>\n",
       "      <td>-94</td>\n",
       "      <td>238</td>\n",
       "      <td>-118.3638</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/10/31</td>\n",
       "      <td>LAL @ POR</td>\n",
       "      <td>POR</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>4</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9173</td>\n",
       "      <td>121</td>\n",
       "      <td>127</td>\n",
       "      <td>-118.1488</td>\n",
       "      <td>11</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side Center(RC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>27</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9343</td>\n",
       "      <td>-67</td>\n",
       "      <td>110</td>\n",
       "      <td>-118.3368</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>66</td>\n",
       "      <td>20000019</td>\n",
       "      <td>34.0403</td>\n",
       "      <td>-94</td>\n",
       "      <td>4</td>\n",
       "      <td>-118.3638</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>80</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9973</td>\n",
       "      <td>-23</td>\n",
       "      <td>47</td>\n",
       "      <td>-118.2928</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>86</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.8523</td>\n",
       "      <td>62</td>\n",
       "      <td>192</td>\n",
       "      <td>-118.2078</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Driving Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>100</td>\n",
       "      <td>20000019</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>138</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.8183</td>\n",
       "      <td>-117</td>\n",
       "      <td>226</td>\n",
       "      <td>-118.3868</td>\n",
       "      <td>8</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>244</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9473</td>\n",
       "      <td>-132</td>\n",
       "      <td>97</td>\n",
       "      <td>-118.4018</td>\n",
       "      <td>11</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Driving Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>249</td>\n",
       "      <td>20000019</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>10</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>255</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9003</td>\n",
       "      <td>3</td>\n",
       "      <td>144</td>\n",
       "      <td>-118.2668</td>\n",
       "      <td>10</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>265</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9173</td>\n",
       "      <td>134</td>\n",
       "      <td>127</td>\n",
       "      <td>-118.1358</td>\n",
       "      <td>9</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side Center(RC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>274</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9343</td>\n",
       "      <td>-16</td>\n",
       "      <td>110</td>\n",
       "      <td>-118.2858</td>\n",
       "      <td>7</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>299</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.8943</td>\n",
       "      <td>-109</td>\n",
       "      <td>150</td>\n",
       "      <td>-118.3788</td>\n",
       "      <td>5</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>307</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9813</td>\n",
       "      <td>-46</td>\n",
       "      <td>63</td>\n",
       "      <td>-118.3158</td>\n",
       "      <td>5</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>332</td>\n",
       "      <td>20000019</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>345</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.8483</td>\n",
       "      <td>-58</td>\n",
       "      <td>196</td>\n",
       "      <td>-118.3278</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>369</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.8583</td>\n",
       "      <td>-183</td>\n",
       "      <td>186</td>\n",
       "      <td>-118.4528</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>400</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.8713</td>\n",
       "      <td>85</td>\n",
       "      <td>173</td>\n",
       "      <td>-118.1848</td>\n",
       "      <td>8</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side Center(RC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>429</td>\n",
       "      <td>20000019</td>\n",
       "      <td>33.9573</td>\n",
       "      <td>3</td>\n",
       "      <td>87</td>\n",
       "      <td>-118.2668</td>\n",
       "      <td>6</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/11/1</td>\n",
       "      <td>LAL vs. UTA</td>\n",
       "      <td>UTA</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30668</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>368</td>\n",
       "      <td>49900087</td>\n",
       "      <td>33.7943</td>\n",
       "      <td>40</td>\n",
       "      <td>250</td>\n",
       "      <td>-118.2298</td>\n",
       "      <td>9</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/16</td>\n",
       "      <td>LAL @ IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30669</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>386</td>\n",
       "      <td>49900087</td>\n",
       "      <td>33.8223</td>\n",
       "      <td>-23</td>\n",
       "      <td>222</td>\n",
       "      <td>-118.2928</td>\n",
       "      <td>7</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/16</td>\n",
       "      <td>LAL @ IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30670</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>425</td>\n",
       "      <td>49900087</td>\n",
       "      <td>33.9913</td>\n",
       "      <td>171</td>\n",
       "      <td>53</td>\n",
       "      <td>-118.0988</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side(R)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/16</td>\n",
       "      <td>LAL @ IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30671</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>15</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0283</td>\n",
       "      <td>-74</td>\n",
       "      <td>16</td>\n",
       "      <td>-118.3438</td>\n",
       "      <td>9</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30672</th>\n",
       "      <td>Driving Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>25</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30673</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>29</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9893</td>\n",
       "      <td>89</td>\n",
       "      <td>55</td>\n",
       "      <td>-118.1808</td>\n",
       "      <td>8</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side(R)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30674</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>36</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>117</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.1528</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Right Side(R)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30675</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>81</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.8283</td>\n",
       "      <td>117</td>\n",
       "      <td>216</td>\n",
       "      <td>-118.1528</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Right Side Center(RC)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30676</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>84</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.8283</td>\n",
       "      <td>-134</td>\n",
       "      <td>216</td>\n",
       "      <td>-118.4038</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30677</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>98</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>-141</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.4108</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30678</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>101</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9013</td>\n",
       "      <td>-113</td>\n",
       "      <td>143</td>\n",
       "      <td>-118.3828</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30679</th>\n",
       "      <td>Driving Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>181</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0283</td>\n",
       "      <td>14</td>\n",
       "      <td>16</td>\n",
       "      <td>-118.2558</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30680</th>\n",
       "      <td>Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>212</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30681</th>\n",
       "      <td>Tip Shot</td>\n",
       "      <td>Tip Shot</td>\n",
       "      <td>213</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30682</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>218</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.7833</td>\n",
       "      <td>-18</td>\n",
       "      <td>261</td>\n",
       "      <td>-118.2878</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30683</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>226</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9963</td>\n",
       "      <td>-68</td>\n",
       "      <td>48</td>\n",
       "      <td>-118.3378</td>\n",
       "      <td>11</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30684</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>228</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.8283</td>\n",
       "      <td>1</td>\n",
       "      <td>216</td>\n",
       "      <td>-118.2688</td>\n",
       "      <td>10</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30685</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>231</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9553</td>\n",
       "      <td>-96</td>\n",
       "      <td>89</td>\n",
       "      <td>-118.3658</td>\n",
       "      <td>10</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30686</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>249</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.7943</td>\n",
       "      <td>81</td>\n",
       "      <td>250</td>\n",
       "      <td>-118.1888</td>\n",
       "      <td>7</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30687</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>268</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9513</td>\n",
       "      <td>16</td>\n",
       "      <td>93</td>\n",
       "      <td>-118.2538</td>\n",
       "      <td>5</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30688</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>284</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9443</td>\n",
       "      <td>40</td>\n",
       "      <td>100</td>\n",
       "      <td>-118.2298</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30689</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>308</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9833</td>\n",
       "      <td>-126</td>\n",
       "      <td>61</td>\n",
       "      <td>-118.3958</td>\n",
       "      <td>1</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30690</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>326</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.3653</td>\n",
       "      <td>-12</td>\n",
       "      <td>679</td>\n",
       "      <td>-118.2818</td>\n",
       "      <td>0</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Back Court(BC)</td>\n",
       "      <td>Backcourt</td>\n",
       "      <td>Back Court Shot</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30691</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>331</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9443</td>\n",
       "      <td>-113</td>\n",
       "      <td>100</td>\n",
       "      <td>-118.3828</td>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side(L)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>8-16 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30692</th>\n",
       "      <td>Driving Layup Shot</td>\n",
       "      <td>Layup</td>\n",
       "      <td>382</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>7</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30693</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>397</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9963</td>\n",
       "      <td>1</td>\n",
       "      <td>48</td>\n",
       "      <td>-118.2688</td>\n",
       "      <td>6</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30694</th>\n",
       "      <td>Tip Shot</td>\n",
       "      <td>Tip Shot</td>\n",
       "      <td>398</td>\n",
       "      <td>49900088</td>\n",
       "      <td>34.0443</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>-118.2698</td>\n",
       "      <td>6</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Restricted Area</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30695</th>\n",
       "      <td>Running Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>426</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.8783</td>\n",
       "      <td>-134</td>\n",
       "      <td>166</td>\n",
       "      <td>-118.4038</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Left Side Center(LC)</td>\n",
       "      <td>Mid-Range</td>\n",
       "      <td>16-24 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30696</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>448</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.7773</td>\n",
       "      <td>31</td>\n",
       "      <td>267</td>\n",
       "      <td>-118.2388</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>3PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>Above the Break 3</td>\n",
       "      <td>24+ ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30697</th>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>Jump Shot</td>\n",
       "      <td>471</td>\n",
       "      <td>49900088</td>\n",
       "      <td>33.9723</td>\n",
       "      <td>1</td>\n",
       "      <td>72</td>\n",
       "      <td>-118.2688</td>\n",
       "      <td>0</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>2PT Field Goal</td>\n",
       "      <td>Center(C)</td>\n",
       "      <td>In The Paint (Non-RA)</td>\n",
       "      <td>Less Than 8 ft.</td>\n",
       "      <td>1610612747</td>\n",
       "      <td>Los Angeles Lakers</td>\n",
       "      <td>2000/6/19</td>\n",
       "      <td>LAL vs. IND</td>\n",
       "      <td>IND</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>30697 rows × 24 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                action_type combined_shot_type  game_event_id   game_id  \\\n",
       "shot_id                                                                   \n",
       "1                 Jump Shot          Jump Shot             10  20000012   \n",
       "2                 Jump Shot          Jump Shot             12  20000012   \n",
       "3                 Jump Shot          Jump Shot             35  20000012   \n",
       "4                 Jump Shot          Jump Shot             43  20000012   \n",
       "5         Driving Dunk Shot               Dunk            155  20000012   \n",
       "6                 Jump Shot          Jump Shot            244  20000012   \n",
       "7                Layup Shot              Layup            251  20000012   \n",
       "8                 Jump Shot          Jump Shot            254  20000012   \n",
       "9                 Jump Shot          Jump Shot            265  20000012   \n",
       "10        Running Jump Shot          Jump Shot            294  20000012   \n",
       "11                Jump Shot          Jump Shot            309  20000012   \n",
       "12                Jump Shot          Jump Shot              4  20000019   \n",
       "13        Running Jump Shot          Jump Shot             27  20000019   \n",
       "14                Jump Shot          Jump Shot             66  20000019   \n",
       "15                Jump Shot          Jump Shot             80  20000019   \n",
       "16                Jump Shot          Jump Shot             86  20000019   \n",
       "17       Driving Layup Shot              Layup            100  20000019   \n",
       "18                Jump Shot          Jump Shot            138  20000019   \n",
       "19                Jump Shot          Jump Shot            244  20000019   \n",
       "20       Driving Layup Shot              Layup            249  20000019   \n",
       "21                Jump Shot          Jump Shot            255  20000019   \n",
       "22                Jump Shot          Jump Shot            265  20000019   \n",
       "23        Running Jump Shot          Jump Shot            274  20000019   \n",
       "24        Running Jump Shot          Jump Shot            299  20000019   \n",
       "25        Running Jump Shot          Jump Shot            307  20000019   \n",
       "26               Layup Shot              Layup            332  20000019   \n",
       "27                Jump Shot          Jump Shot            345  20000019   \n",
       "28                Jump Shot          Jump Shot            369  20000019   \n",
       "29                Jump Shot          Jump Shot            400  20000019   \n",
       "30                Jump Shot          Jump Shot            429  20000019   \n",
       "...                     ...                ...            ...       ...   \n",
       "30668             Jump Shot          Jump Shot            368  49900087   \n",
       "30669             Jump Shot          Jump Shot            386  49900087   \n",
       "30670             Jump Shot          Jump Shot            425  49900087   \n",
       "30671     Running Jump Shot          Jump Shot             15  49900088   \n",
       "30672    Driving Layup Shot              Layup             25  49900088   \n",
       "30673             Jump Shot          Jump Shot             29  49900088   \n",
       "30674             Jump Shot          Jump Shot             36  49900088   \n",
       "30675             Jump Shot          Jump Shot             81  49900088   \n",
       "30676             Jump Shot          Jump Shot             84  49900088   \n",
       "30677     Running Jump Shot          Jump Shot             98  49900088   \n",
       "30678             Jump Shot          Jump Shot            101  49900088   \n",
       "30679    Driving Layup Shot              Layup            181  49900088   \n",
       "30680            Layup Shot              Layup            212  49900088   \n",
       "30681              Tip Shot           Tip Shot            213  49900088   \n",
       "30682             Jump Shot          Jump Shot            218  49900088   \n",
       "30683     Running Jump Shot          Jump Shot            226  49900088   \n",
       "30684             Jump Shot          Jump Shot            228  49900088   \n",
       "30685             Jump Shot          Jump Shot            231  49900088   \n",
       "30686             Jump Shot          Jump Shot            249  49900088   \n",
       "30687     Running Jump Shot          Jump Shot            268  49900088   \n",
       "30688             Jump Shot          Jump Shot            284  49900088   \n",
       "30689             Jump Shot          Jump Shot            308  49900088   \n",
       "30690             Jump Shot          Jump Shot            326  49900088   \n",
       "30691             Jump Shot          Jump Shot            331  49900088   \n",
       "30692    Driving Layup Shot              Layup            382  49900088   \n",
       "30693             Jump Shot          Jump Shot            397  49900088   \n",
       "30694              Tip Shot           Tip Shot            398  49900088   \n",
       "30695     Running Jump Shot          Jump Shot            426  49900088   \n",
       "30696             Jump Shot          Jump Shot            448  49900088   \n",
       "30697             Jump Shot          Jump Shot            471  49900088   \n",
       "\n",
       "             lat  loc_x  loc_y       lon  minutes_remaining  period  ...  \\\n",
       "shot_id                                                              ...   \n",
       "1        33.9723    167     72 -118.1028                 10       1  ...   \n",
       "2        34.0443   -157      0 -118.4268                 10       1  ...   \n",
       "3        33.9093   -101    135 -118.3708                  7       1  ...   \n",
       "4        33.8693    138    175 -118.1318                  6       1  ...   \n",
       "5        34.0443      0      0 -118.2698                  6       2  ...   \n",
       "6        34.0553   -145    -11 -118.4148                  9       3  ...   \n",
       "7        34.0443      0      0 -118.2698                  8       3  ...   \n",
       "8        34.0163      1     28 -118.2688                  8       3  ...   \n",
       "9        33.9363    -65    108 -118.3348                  6       3  ...   \n",
       "10       33.9193    -33    125 -118.3028                  3       3  ...   \n",
       "11       33.8063    -94    238 -118.3638                  1       3  ...   \n",
       "12       33.9173    121    127 -118.1488                 11       1  ...   \n",
       "13       33.9343    -67    110 -118.3368                  7       1  ...   \n",
       "14       34.0403    -94      4 -118.3638                  2       1  ...   \n",
       "15       33.9973    -23     47 -118.2928                  1       1  ...   \n",
       "16       33.8523     62    192 -118.2078                  0       1  ...   \n",
       "17       34.0443      0      0 -118.2698                  0       1  ...   \n",
       "18       33.8183   -117    226 -118.3868                  8       2  ...   \n",
       "19       33.9473   -132     97 -118.4018                 11       3  ...   \n",
       "20       34.0443      0      0 -118.2698                 10       3  ...   \n",
       "21       33.9003      3    144 -118.2668                 10       3  ...   \n",
       "22       33.9173    134    127 -118.1358                  9       3  ...   \n",
       "23       33.9343    -16    110 -118.2858                  7       3  ...   \n",
       "24       33.8943   -109    150 -118.3788                  5       3  ...   \n",
       "25       33.9813    -46     63 -118.3158                  5       3  ...   \n",
       "26       34.0443      0      0 -118.2698                  2       3  ...   \n",
       "27       33.8483    -58    196 -118.3278                  2       3  ...   \n",
       "28       33.8583   -183    186 -118.4528                  0       3  ...   \n",
       "29       33.8713     85    173 -118.1848                  8       4  ...   \n",
       "30       33.9573      3     87 -118.2668                  6       4  ...   \n",
       "...          ...    ...    ...       ...                ...     ...  ...   \n",
       "30668    33.7943     40    250 -118.2298                  9       4  ...   \n",
       "30669    33.8223    -23    222 -118.2928                  7       4  ...   \n",
       "30670    33.9913    171     53 -118.0988                  3       4  ...   \n",
       "30671    34.0283    -74     16 -118.3438                  9       1  ...   \n",
       "30672    34.0443      0      0 -118.2698                  8       1  ...   \n",
       "30673    33.9893     89     55 -118.1808                  8       1  ...   \n",
       "30674    34.0443    117      0 -118.1528                  7       1  ...   \n",
       "30675    33.8283    117    216 -118.1528                  2       1  ...   \n",
       "30676    33.8283   -134    216 -118.4038                  2       1  ...   \n",
       "30677    34.0443   -141      0 -118.4108                  0       1  ...   \n",
       "30678    33.9013   -113    143 -118.3828                  0       1  ...   \n",
       "30679    34.0283     14     16 -118.2558                  3       2  ...   \n",
       "30680    34.0443      0      0 -118.2698                  0       2  ...   \n",
       "30681    34.0443      0      0 -118.2698                  0       2  ...   \n",
       "30682    33.7833    -18    261 -118.2878                  0       2  ...   \n",
       "30683    33.9963    -68     48 -118.3378                 11       3  ...   \n",
       "30684    33.8283      1    216 -118.2688                 10       3  ...   \n",
       "30685    33.9553    -96     89 -118.3658                 10       3  ...   \n",
       "30686    33.7943     81    250 -118.1888                  7       3  ...   \n",
       "30687    33.9513     16     93 -118.2538                  5       3  ...   \n",
       "30688    33.9443     40    100 -118.2298                  3       3  ...   \n",
       "30689    33.9833   -126     61 -118.3958                  1       3  ...   \n",
       "30690    33.3653    -12    679 -118.2818                  0       3  ...   \n",
       "30691    33.9443   -113    100 -118.3828                 11       4  ...   \n",
       "30692    34.0443      0      0 -118.2698                  7       4  ...   \n",
       "30693    33.9963      1     48 -118.2688                  6       4  ...   \n",
       "30694    34.0443      0      0 -118.2698                  6       4  ...   \n",
       "30695    33.8783   -134    166 -118.4038                  3       4  ...   \n",
       "30696    33.7773     31    267 -118.2388                  2       4  ...   \n",
       "30697    33.9723      1     72 -118.2688                  0       4  ...   \n",
       "\n",
       "         shot_made_flag       shot_type         shot_zone_area  \\\n",
       "shot_id                                                          \n",
       "1                   NaN  2PT Field Goal          Right Side(R)   \n",
       "2                   0.0  2PT Field Goal           Left Side(L)   \n",
       "3                   1.0  2PT Field Goal   Left Side Center(LC)   \n",
       "4                   0.0  2PT Field Goal  Right Side Center(RC)   \n",
       "5                   1.0  2PT Field Goal              Center(C)   \n",
       "6                   0.0  2PT Field Goal           Left Side(L)   \n",
       "7                   1.0  2PT Field Goal              Center(C)   \n",
       "8                   NaN  2PT Field Goal              Center(C)   \n",
       "9                   1.0  2PT Field Goal           Left Side(L)   \n",
       "10                  0.0  2PT Field Goal              Center(C)   \n",
       "11                  0.0  3PT Field Goal   Left Side Center(LC)   \n",
       "12                  1.0  2PT Field Goal  Right Side Center(RC)   \n",
       "13                  1.0  2PT Field Goal           Left Side(L)   \n",
       "14                  0.0  2PT Field Goal           Left Side(L)   \n",
       "15                  0.0  2PT Field Goal              Center(C)   \n",
       "16                  0.0  2PT Field Goal              Center(C)   \n",
       "17                  NaN  2PT Field Goal              Center(C)   \n",
       "18                  1.0  3PT Field Goal   Left Side Center(LC)   \n",
       "19                  0.0  2PT Field Goal   Left Side Center(LC)   \n",
       "20                  NaN  2PT Field Goal              Center(C)   \n",
       "21                  0.0  2PT Field Goal              Center(C)   \n",
       "22                  0.0  2PT Field Goal  Right Side Center(RC)   \n",
       "23                  1.0  2PT Field Goal              Center(C)   \n",
       "24                  1.0  2PT Field Goal   Left Side Center(LC)   \n",
       "25                  1.0  2PT Field Goal              Center(C)   \n",
       "26                  0.0  2PT Field Goal              Center(C)   \n",
       "27                  0.0  2PT Field Goal              Center(C)   \n",
       "28                  0.0  3PT Field Goal   Left Side Center(LC)   \n",
       "29                  0.0  2PT Field Goal  Right Side Center(RC)   \n",
       "30                  0.0  2PT Field Goal              Center(C)   \n",
       "...                 ...             ...                    ...   \n",
       "30668               0.0  3PT Field Goal              Center(C)   \n",
       "30669               NaN  2PT Field Goal              Center(C)   \n",
       "30670               0.0  2PT Field Goal          Right Side(R)   \n",
       "30671               0.0  2PT Field Goal              Center(C)   \n",
       "30672               0.0  2PT Field Goal              Center(C)   \n",
       "30673               1.0  2PT Field Goal          Right Side(R)   \n",
       "30674               0.0  2PT Field Goal          Right Side(R)   \n",
       "30675               1.0  3PT Field Goal  Right Side Center(RC)   \n",
       "30676               0.0  3PT Field Goal   Left Side Center(LC)   \n",
       "30677               1.0  2PT Field Goal           Left Side(L)   \n",
       "30678               0.0  2PT Field Goal   Left Side Center(LC)   \n",
       "30679               0.0  2PT Field Goal              Center(C)   \n",
       "30680               0.0  2PT Field Goal              Center(C)   \n",
       "30681               NaN  2PT Field Goal              Center(C)   \n",
       "30682               1.0  3PT Field Goal              Center(C)   \n",
       "30683               NaN  2PT Field Goal           Left Side(L)   \n",
       "30684               0.0  2PT Field Goal              Center(C)   \n",
       "30685               0.0  2PT Field Goal           Left Side(L)   \n",
       "30686               0.0  3PT Field Goal              Center(C)   \n",
       "30687               NaN  2PT Field Goal              Center(C)   \n",
       "30688               0.0  2PT Field Goal              Center(C)   \n",
       "30689               1.0  2PT Field Goal           Left Side(L)   \n",
       "30690               0.0  3PT Field Goal         Back Court(BC)   \n",
       "30691               0.0  2PT Field Goal           Left Side(L)   \n",
       "30692               0.0  2PT Field Goal              Center(C)   \n",
       "30693               0.0  2PT Field Goal              Center(C)   \n",
       "30694               NaN  2PT Field Goal              Center(C)   \n",
       "30695               1.0  2PT Field Goal   Left Side Center(LC)   \n",
       "30696               0.0  3PT Field Goal              Center(C)   \n",
       "30697               0.0  2PT Field Goal              Center(C)   \n",
       "\n",
       "               shot_zone_basic  shot_zone_range     team_id  \\\n",
       "shot_id                                                       \n",
       "1                    Mid-Range        16-24 ft.  1610612747   \n",
       "2                    Mid-Range         8-16 ft.  1610612747   \n",
       "3                    Mid-Range        16-24 ft.  1610612747   \n",
       "4                    Mid-Range        16-24 ft.  1610612747   \n",
       "5              Restricted Area  Less Than 8 ft.  1610612747   \n",
       "6                    Mid-Range         8-16 ft.  1610612747   \n",
       "7              Restricted Area  Less Than 8 ft.  1610612747   \n",
       "8              Restricted Area  Less Than 8 ft.  1610612747   \n",
       "9        In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "10       In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "11           Above the Break 3          24+ ft.  1610612747   \n",
       "12                   Mid-Range        16-24 ft.  1610612747   \n",
       "13       In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "14                   Mid-Range         8-16 ft.  1610612747   \n",
       "15       In The Paint (Non-RA)  Less Than 8 ft.  1610612747   \n",
       "16                   Mid-Range        16-24 ft.  1610612747   \n",
       "17             Restricted Area  Less Than 8 ft.  1610612747   \n",
       "18           Above the Break 3          24+ ft.  1610612747   \n",
       "19                   Mid-Range        16-24 ft.  1610612747   \n",
       "20             Restricted Area  Less Than 8 ft.  1610612747   \n",
       "21                   Mid-Range         8-16 ft.  1610612747   \n",
       "22                   Mid-Range        16-24 ft.  1610612747   \n",
       "23       In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "24                   Mid-Range        16-24 ft.  1610612747   \n",
       "25       In The Paint (Non-RA)  Less Than 8 ft.  1610612747   \n",
       "26             Restricted Area  Less Than 8 ft.  1610612747   \n",
       "27                   Mid-Range        16-24 ft.  1610612747   \n",
       "28           Above the Break 3          24+ ft.  1610612747   \n",
       "29                   Mid-Range        16-24 ft.  1610612747   \n",
       "30       In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "...                        ...              ...         ...   \n",
       "30668        Above the Break 3          24+ ft.  1610612747   \n",
       "30669                Mid-Range        16-24 ft.  1610612747   \n",
       "30670                Mid-Range        16-24 ft.  1610612747   \n",
       "30671    In The Paint (Non-RA)  Less Than 8 ft.  1610612747   \n",
       "30672          Restricted Area  Less Than 8 ft.  1610612747   \n",
       "30673                Mid-Range         8-16 ft.  1610612747   \n",
       "30674                Mid-Range         8-16 ft.  1610612747   \n",
       "30675        Above the Break 3          24+ ft.  1610612747   \n",
       "30676        Above the Break 3          24+ ft.  1610612747   \n",
       "30677                Mid-Range         8-16 ft.  1610612747   \n",
       "30678                Mid-Range        16-24 ft.  1610612747   \n",
       "30679          Restricted Area  Less Than 8 ft.  1610612747   \n",
       "30680          Restricted Area  Less Than 8 ft.  1610612747   \n",
       "30681          Restricted Area  Less Than 8 ft.  1610612747   \n",
       "30682        Above the Break 3          24+ ft.  1610612747   \n",
       "30683    In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "30684                Mid-Range        16-24 ft.  1610612747   \n",
       "30685                Mid-Range         8-16 ft.  1610612747   \n",
       "30686        Above the Break 3          24+ ft.  1610612747   \n",
       "30687    In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "30688    In The Paint (Non-RA)         8-16 ft.  1610612747   \n",
       "30689                Mid-Range         8-16 ft.  1610612747   \n",
       "30690                Backcourt  Back Court Shot  1610612747   \n",
       "30691                Mid-Range         8-16 ft.  1610612747   \n",
       "30692          Restricted Area  Less Than 8 ft.  1610612747   \n",
       "30693    In The Paint (Non-RA)  Less Than 8 ft.  1610612747   \n",
       "30694          Restricted Area  Less Than 8 ft.  1610612747   \n",
       "30695                Mid-Range        16-24 ft.  1610612747   \n",
       "30696        Above the Break 3          24+ ft.  1610612747   \n",
       "30697    In The Paint (Non-RA)  Less Than 8 ft.  1610612747   \n",
       "\n",
       "                  team_name   game_date      matchup  opponent  \n",
       "shot_id                                                         \n",
       "1        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "2        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "3        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "4        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "5        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "6        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "7        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "8        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "9        Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "10       Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "11       Los Angeles Lakers  2000/10/31    LAL @ POR       POR  \n",
       "12       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "13       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "14       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "15       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "16       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "17       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "18       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "19       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "20       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "21       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "22       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "23       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "24       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "25       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "26       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "27       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "28       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "29       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "30       Los Angeles Lakers   2000/11/1  LAL vs. UTA       UTA  \n",
       "...                     ...         ...          ...       ...  \n",
       "30668    Los Angeles Lakers   2000/6/16    LAL @ IND       IND  \n",
       "30669    Los Angeles Lakers   2000/6/16    LAL @ IND       IND  \n",
       "30670    Los Angeles Lakers   2000/6/16    LAL @ IND       IND  \n",
       "30671    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30672    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30673    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30674    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30675    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30676    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30677    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30678    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30679    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30680    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30681    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30682    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30683    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30684    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30685    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30686    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30687    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30688    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30689    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30690    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30691    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30692    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30693    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30694    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30695    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30696    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "30697    Los Angeles Lakers   2000/6/19  LAL vs. IND       IND  \n",
       "\n",
       "[30697 rows x 24 columns]"
      ]
     },
     "execution_count": 94,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('Jump Shot', 'Jump Shot')"
      ]
     },
     "execution_count": 97,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.Series(list(zip(df['action_type'],df['combined_shot_type']))).value_counts().index[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 121,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'SAS'"
      ]
     },
     "execution_count": 121,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.Series(list(list(zip(*(pd.Series(list(zip(df['game_id'],df['opponent']))).unique()).tolist()))[1])).value_counts().index[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 124,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([(20000012, 'POR'), (20000019, 'UTA'), (20000047, 'VAN'), ...,\n",
       "       (49900086, 'IND'), (49900087, 'IND'), (49900088, 'IND')],\n",
       "      dtype=object)"
      ]
     },
     "execution_count": 124,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "a = pd.Series(list(zip(df['game_id'],df['opponent'])))\n",
    "a.head()\n",
    "a.unique()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "zip * 为解压的过程\n",
    "用分组聚合或数据透视的方法是不是更快 "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 109,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<zip at 0x1bea29aa2c8>"
      ]
     },
     "execution_count": 109,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "zip(*(a.unique()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 119,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<zip at 0x1bea299b408>"
      ]
     },
     "execution_count": 119,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "zip((a.unique()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 113,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<zip at 0x1bea17a1208>"
      ]
     },
     "execution_count": 113,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "zip(*(a.unique()).tolist())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 117,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('POR',\n",
       " 'UTA',\n",
       " 'VAN',\n",
       " 'LAC',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'HOU',\n",
       " 'DEN',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'CHI',\n",
       " 'GSW',\n",
       " 'MIN',\n",
       " 'LAC',\n",
       " 'IND',\n",
       " 'SEA',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'PHI',\n",
       " 'GSW',\n",
       " 'SEA',\n",
       " 'DET',\n",
       " 'MIL',\n",
       " 'POR',\n",
       " 'VAN',\n",
       " 'TOR',\n",
       " 'MIA',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'UTA',\n",
       " 'LAC',\n",
       " 'CLE',\n",
       " 'UTA',\n",
       " 'VAN',\n",
       " 'HOU',\n",
       " 'MIA',\n",
       " 'SEA',\n",
       " 'NJN',\n",
       " 'NYK',\n",
       " 'CLE',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'NJN',\n",
       " 'PHI',\n",
       " 'CHA',\n",
       " 'IND',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'VAN',\n",
       " 'GSW',\n",
       " 'GSW',\n",
       " 'TOR',\n",
       " 'SAS',\n",
       " 'DET',\n",
       " 'WAS',\n",
       " 'ORL',\n",
       " 'ATL',\n",
       " 'MIL',\n",
       " 'NYK',\n",
       " 'PHX',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'UTA',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'MEM',\n",
       " 'ORL',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'SAC',\n",
       " 'LAC',\n",
       " 'DEN',\n",
       " 'GSW',\n",
       " 'DEN',\n",
       " 'MIL',\n",
       " 'SEA',\n",
       " 'MIN',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'SEA',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'HOU',\n",
       " 'MEM',\n",
       " 'PHI',\n",
       " 'GSW',\n",
       " 'TOR',\n",
       " 'HOU',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'TOR',\n",
       " 'DET',\n",
       " 'IND',\n",
       " 'MIN',\n",
       " 'CHI',\n",
       " 'MEM',\n",
       " 'MIA',\n",
       " 'SAS',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'SAS',\n",
       " 'PHI',\n",
       " 'ATL',\n",
       " 'ORL',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'CHI',\n",
       " 'WAS',\n",
       " 'SEA',\n",
       " 'ATL',\n",
       " 'POR',\n",
       " 'BOS',\n",
       " 'CLE',\n",
       " 'CHA',\n",
       " 'NYK',\n",
       " 'MIL',\n",
       " 'MIN',\n",
       " 'IND',\n",
       " 'UTA',\n",
       " 'NYK',\n",
       " 'CHA',\n",
       " 'GSW',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'DAL',\n",
       " 'SAS',\n",
       " 'DET',\n",
       " 'SAC',\n",
       " 'CLE',\n",
       " 'PHX',\n",
       " 'POR',\n",
       " 'SAS',\n",
       " 'WAS',\n",
       " 'NJN',\n",
       " 'BOS',\n",
       " 'MIA',\n",
       " 'UTA',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'SAS',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'POR',\n",
       " 'CLE',\n",
       " 'BOS',\n",
       " 'WAS',\n",
       " 'ATL',\n",
       " 'GSW',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'SAS',\n",
       " 'CHI',\n",
       " 'MIL',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'MEM',\n",
       " 'MIN',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'GSW',\n",
       " 'NOH',\n",
       " 'ORL',\n",
       " 'MIN',\n",
       " 'NJN',\n",
       " 'PHI',\n",
       " 'TOR',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'TOR',\n",
       " 'PHX',\n",
       " 'PHX',\n",
       " 'SEA',\n",
       " 'CLE',\n",
       " 'MIA',\n",
       " 'NOH',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'PHX',\n",
       " 'SAC',\n",
       " 'UTA',\n",
       " 'IND',\n",
       " 'NYK',\n",
       " 'DEN',\n",
       " 'DEN',\n",
       " 'SAS',\n",
       " 'NYK',\n",
       " 'HOU',\n",
       " 'UTA',\n",
       " 'POR',\n",
       " 'SEA',\n",
       " 'LAC',\n",
       " 'DET',\n",
       " 'SEA',\n",
       " 'IND',\n",
       " 'MIN',\n",
       " 'PHI',\n",
       " 'CHI',\n",
       " 'DET',\n",
       " 'MIN',\n",
       " 'MIL',\n",
       " 'LAC',\n",
       " 'SAC',\n",
       " 'BOS',\n",
       " 'SAS',\n",
       " 'ATL',\n",
       " 'HOU',\n",
       " 'WAS',\n",
       " 'SEA',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'PHX',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'GSW',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'MIL',\n",
       " 'SAS',\n",
       " 'NOH',\n",
       " 'MEM',\n",
       " 'TOR',\n",
       " 'DET',\n",
       " 'MIA',\n",
       " 'DET',\n",
       " 'NYK',\n",
       " 'CHI',\n",
       " 'MEM',\n",
       " 'WAS',\n",
       " 'SAS',\n",
       " 'IND',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'NYK',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'HOU',\n",
       " 'BOS',\n",
       " 'SEA',\n",
       " 'LAC',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'ATL',\n",
       " 'CLE',\n",
       " 'UTA',\n",
       " 'SEA',\n",
       " 'HOU',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'PHI',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'SAC',\n",
       " 'WAS',\n",
       " 'NJN',\n",
       " 'HOU',\n",
       " 'BOS',\n",
       " 'MIN',\n",
       " 'CHI',\n",
       " 'ORL',\n",
       " 'LAC',\n",
       " 'LAC',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'UTA',\n",
       " 'NOH',\n",
       " 'HOU',\n",
       " 'SEA',\n",
       " 'SAS',\n",
       " 'POR',\n",
       " 'MEM',\n",
       " 'SAC',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'SAS',\n",
       " 'ATL',\n",
       " 'NOP',\n",
       " 'MEM',\n",
       " 'ORL',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'PHX',\n",
       " 'CHI',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'NOP',\n",
       " 'MIL',\n",
       " 'CHI',\n",
       " 'GSW',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'ORL',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'WAS',\n",
       " 'MEM',\n",
       " 'NOP',\n",
       " 'MIA',\n",
       " 'TOR',\n",
       " 'DEN',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'CLE',\n",
       " 'CLE',\n",
       " 'UTA',\n",
       " 'BOS',\n",
       " 'POR',\n",
       " 'DET',\n",
       " 'TOR',\n",
       " 'NYK',\n",
       " 'BOS',\n",
       " 'DAL',\n",
       " 'IND',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'CHA',\n",
       " 'WAS',\n",
       " 'PHI',\n",
       " 'MIA',\n",
       " 'IND',\n",
       " 'SEA',\n",
       " 'UTA',\n",
       " 'DEN',\n",
       " 'PHI',\n",
       " 'NYK',\n",
       " 'MIN',\n",
       " 'SAS',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'DAL',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'ATL',\n",
       " 'MIN',\n",
       " 'PHI',\n",
       " 'MEM',\n",
       " 'NYK',\n",
       " 'LAC',\n",
       " 'CHI',\n",
       " 'SEA',\n",
       " 'NJN',\n",
       " 'SAS',\n",
       " 'UTA',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'MIL',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'MIN',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'WAS',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'ORL',\n",
       " 'MIA',\n",
       " 'WAS',\n",
       " 'MEM',\n",
       " 'PHI',\n",
       " 'LAC',\n",
       " 'IND',\n",
       " 'POR',\n",
       " 'CLE',\n",
       " 'GSW',\n",
       " 'MIA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'TOR',\n",
       " 'GSW',\n",
       " 'DET',\n",
       " 'NYK',\n",
       " 'IND',\n",
       " 'CHA',\n",
       " 'NOP',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'ATL',\n",
       " 'POR',\n",
       " 'SAC',\n",
       " 'LAC',\n",
       " 'BOS',\n",
       " 'ORL',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'DET',\n",
       " 'SAS',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'NJN',\n",
       " 'CLE',\n",
       " 'BOS',\n",
       " 'SAC',\n",
       " 'MIL',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'SEA',\n",
       " 'HOU',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'PHX',\n",
       " 'NOP',\n",
       " 'SEA',\n",
       " 'SEA',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'DET',\n",
       " 'MEM',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'LAC',\n",
       " 'UTA',\n",
       " 'NJN',\n",
       " 'MIL',\n",
       " 'UTA',\n",
       " 'LAC',\n",
       " 'IND',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'WAS',\n",
       " 'CHI',\n",
       " 'MIN',\n",
       " 'NJN',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'CHA',\n",
       " 'PHI',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'ORL',\n",
       " 'MIA',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'NOP',\n",
       " 'GSW',\n",
       " 'CHA',\n",
       " 'SAS',\n",
       " 'BOS',\n",
       " 'IND',\n",
       " 'WAS',\n",
       " 'ATL',\n",
       " 'DET',\n",
       " 'TOR',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'CLE',\n",
       " 'POR',\n",
       " 'BOS',\n",
       " 'GSW',\n",
       " 'UTA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'MIN',\n",
       " 'PHI',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'MIN',\n",
       " 'MEM',\n",
       " 'NOP',\n",
       " 'GSW',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'SEA',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'PHX',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'NOH',\n",
       " 'MIN',\n",
       " 'SAS',\n",
       " 'HOU',\n",
       " 'DET',\n",
       " 'CHI',\n",
       " 'IND',\n",
       " 'MIL',\n",
       " 'BOS',\n",
       " 'NJN',\n",
       " 'SEA',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'ORL',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'GSW',\n",
       " 'SAS',\n",
       " 'GSW',\n",
       " 'LAC',\n",
       " 'CHI',\n",
       " 'CLE',\n",
       " 'PHI',\n",
       " 'NYK',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'BOS',\n",
       " 'PHI',\n",
       " 'IND',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'MIL',\n",
       " 'MEM',\n",
       " 'SEA',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'DET',\n",
       " 'TOR',\n",
       " 'WAS',\n",
       " 'NJN',\n",
       " 'ATL',\n",
       " 'ORL',\n",
       " 'MIA',\n",
       " 'CHA',\n",
       " 'MIN',\n",
       " 'ATL',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'SEA',\n",
       " 'POR',\n",
       " 'MIA',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'LAC',\n",
       " 'SAC',\n",
       " 'TOR',\n",
       " 'NOH',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'SEA',\n",
       " 'GSW',\n",
       " 'GSW',\n",
       " 'CHA',\n",
       " 'MEM',\n",
       " 'WAS',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'NOH',\n",
       " 'SAS',\n",
       " 'SAC',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'NOH',\n",
       " 'DET',\n",
       " 'CHI',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'SAC',\n",
       " 'NJN',\n",
       " 'DAL',\n",
       " 'TOR',\n",
       " 'IND',\n",
       " 'PHI',\n",
       " 'WAS',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'NYK',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'BOS',\n",
       " 'GSW',\n",
       " 'UTA',\n",
       " 'POR',\n",
       " 'NOH',\n",
       " 'GSW',\n",
       " 'IND',\n",
       " 'MIA',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'ORL',\n",
       " 'CLE',\n",
       " 'LAC',\n",
       " 'WAS',\n",
       " 'SAS',\n",
       " 'CHA',\n",
       " 'MIN',\n",
       " 'MEM',\n",
       " 'NYK',\n",
       " 'TOR',\n",
       " 'BOS',\n",
       " 'CLE',\n",
       " 'OKC',\n",
       " 'UTA',\n",
       " 'ATL',\n",
       " 'GSW',\n",
       " 'NOH',\n",
       " 'MIN',\n",
       " 'OKC',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'MEM',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'PHI',\n",
       " 'GSW',\n",
       " 'CHI',\n",
       " 'OKC',\n",
       " 'DET',\n",
       " 'NJN',\n",
       " 'ATL',\n",
       " 'CHA',\n",
       " 'MIL',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'ATL',\n",
       " 'OKC',\n",
       " 'HOU',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'HOU',\n",
       " 'DET',\n",
       " 'CHI',\n",
       " 'OKC',\n",
       " 'NYK',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'NOH',\n",
       " 'MIA',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'MIN',\n",
       " 'UTA',\n",
       " 'CHI',\n",
       " 'MIL',\n",
       " 'NJN',\n",
       " 'DET',\n",
       " 'OKC',\n",
       " 'CLE',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'SAC',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'POR',\n",
       " 'MIL',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'LAC',\n",
       " 'ORL',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'TOR',\n",
       " 'WAS',\n",
       " 'IND',\n",
       " 'PHI',\n",
       " 'BOS',\n",
       " 'MEM',\n",
       " 'CHA',\n",
       " 'DEN',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'PHI',\n",
       " 'DEN',\n",
       " 'IND',\n",
       " 'MIA',\n",
       " 'CHA',\n",
       " 'ORL',\n",
       " 'TOR',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'WAS',\n",
       " 'SAS',\n",
       " 'OKC',\n",
       " 'HOU',\n",
       " 'NOH',\n",
       " 'ATL',\n",
       " 'UTA',\n",
       " 'SAS',\n",
       " 'POR',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'MEM',\n",
       " 'SAC',\n",
       " 'TOR',\n",
       " 'POR',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'MIL',\n",
       " 'DET',\n",
       " 'MIN',\n",
       " 'GSW',\n",
       " 'CHI',\n",
       " 'UTA',\n",
       " 'IND',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'SAC',\n",
       " 'WAS',\n",
       " 'LAC',\n",
       " 'CHI',\n",
       " 'NJN',\n",
       " 'WAS',\n",
       " 'IND',\n",
       " 'PHI',\n",
       " 'TOR',\n",
       " 'MIL',\n",
       " 'MIA',\n",
       " 'SAS',\n",
       " 'NOH',\n",
       " 'PHI',\n",
       " 'MEM',\n",
       " 'DET',\n",
       " 'PHX',\n",
       " 'NOH',\n",
       " 'NYK',\n",
       " 'CLE',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'LAC',\n",
       " 'OKC',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'SAC',\n",
       " 'BOS',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'NOH',\n",
       " 'MEM',\n",
       " 'BOS',\n",
       " 'NYK',\n",
       " 'ORL',\n",
       " 'CHA',\n",
       " 'CLE',\n",
       " 'ATL',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'OKC',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'SAS',\n",
       " 'ATL',\n",
       " 'MIA',\n",
       " 'DAL',\n",
       " 'ORL',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'NOH',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'OKC',\n",
       " 'SAS',\n",
       " 'SAC',\n",
       " 'CHI',\n",
       " 'SAC',\n",
       " 'UTA',\n",
       " 'NYK',\n",
       " 'DEN',\n",
       " 'DEN',\n",
       " 'HOU',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'MEM',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'CLE',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'IND',\n",
       " 'LAC',\n",
       " 'MIL',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'PHI',\n",
       " 'BOS',\n",
       " 'NYK',\n",
       " 'TOR',\n",
       " 'ATL',\n",
       " 'PHX',\n",
       " 'PHX',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'OKC',\n",
       " 'MIN',\n",
       " 'SAC',\n",
       " 'MIA',\n",
       " 'DET',\n",
       " 'WAS',\n",
       " 'MIN',\n",
       " 'BOS',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'MIN',\n",
       " 'UTA',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'MEM',\n",
       " 'GSW',\n",
       " 'OKC',\n",
       " 'NOH',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'LAC',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'OKC',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'DET',\n",
       " 'UTA',\n",
       " 'GSW',\n",
       " 'SAC',\n",
       " 'SAS',\n",
       " 'PHX',\n",
       " 'HOU',\n",
       " 'BKN',\n",
       " 'SAC',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'IND',\n",
       " 'DEN',\n",
       " 'ORL',\n",
       " 'HOU',\n",
       " 'NOH',\n",
       " 'OKC',\n",
       " 'UTA',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'WAS',\n",
       " 'PHI',\n",
       " 'CHA',\n",
       " 'GSW',\n",
       " 'NYK',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'PHI',\n",
       " 'LAC',\n",
       " 'DEN',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'OKC',\n",
       " 'CLE',\n",
       " 'MIL',\n",
       " 'MIA',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'OKC',\n",
       " 'NOH',\n",
       " 'PHX',\n",
       " 'MIN',\n",
       " 'DET',\n",
       " 'BKN',\n",
       " 'BOS',\n",
       " 'CHA',\n",
       " 'MIA',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'BOS',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'MIN',\n",
       " 'ATL',\n",
       " 'OKC',\n",
       " 'NOH',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'ORL',\n",
       " 'ATL',\n",
       " 'IND',\n",
       " 'WAS',\n",
       " 'GSW',\n",
       " 'MIN',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'LAC',\n",
       " 'NOH',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'TOR',\n",
       " 'PHX',\n",
       " 'OKC',\n",
       " 'CHA',\n",
       " 'ATL',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'PHX',\n",
       " 'CHA',\n",
       " 'MEM',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'GSW',\n",
       " 'ATL',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'MEM',\n",
       " 'MIN',\n",
       " 'TOR',\n",
       " 'DET',\n",
       " 'WAS',\n",
       " 'BOS',\n",
       " 'NOP',\n",
       " 'SAC',\n",
       " ...)"
      ]
     },
     "execution_count": 117,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list(zip(*(a.unique()).tolist()))[1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 105,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['POR',\n",
       " 'UTA',\n",
       " 'VAN',\n",
       " 'LAC',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'HOU',\n",
       " 'DEN',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'CHI',\n",
       " 'GSW',\n",
       " 'MIN',\n",
       " 'LAC',\n",
       " 'IND',\n",
       " 'SEA',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'PHI',\n",
       " 'GSW',\n",
       " 'SEA',\n",
       " 'DET',\n",
       " 'MIL',\n",
       " 'POR',\n",
       " 'VAN',\n",
       " 'TOR',\n",
       " 'MIA',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'UTA',\n",
       " 'LAC',\n",
       " 'CLE',\n",
       " 'UTA',\n",
       " 'VAN',\n",
       " 'HOU',\n",
       " 'MIA',\n",
       " 'SEA',\n",
       " 'NJN',\n",
       " 'NYK',\n",
       " 'CLE',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'NJN',\n",
       " 'PHI',\n",
       " 'CHA',\n",
       " 'IND',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'VAN',\n",
       " 'GSW',\n",
       " 'GSW',\n",
       " 'TOR',\n",
       " 'SAS',\n",
       " 'DET',\n",
       " 'WAS',\n",
       " 'ORL',\n",
       " 'ATL',\n",
       " 'MIL',\n",
       " 'NYK',\n",
       " 'PHX',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'UTA',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'MEM',\n",
       " 'ORL',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'SAC',\n",
       " 'LAC',\n",
       " 'DEN',\n",
       " 'GSW',\n",
       " 'DEN',\n",
       " 'MIL',\n",
       " 'SEA',\n",
       " 'MIN',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'SEA',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'HOU',\n",
       " 'MEM',\n",
       " 'PHI',\n",
       " 'GSW',\n",
       " 'TOR',\n",
       " 'HOU',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'TOR',\n",
       " 'DET',\n",
       " 'IND',\n",
       " 'MIN',\n",
       " 'CHI',\n",
       " 'MEM',\n",
       " 'MIA',\n",
       " 'SAS',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'SAS',\n",
       " 'PHI',\n",
       " 'ATL',\n",
       " 'ORL',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'CHI',\n",
       " 'WAS',\n",
       " 'SEA',\n",
       " 'ATL',\n",
       " 'POR',\n",
       " 'BOS',\n",
       " 'CLE',\n",
       " 'CHA',\n",
       " 'NYK',\n",
       " 'MIL',\n",
       " 'MIN',\n",
       " 'IND',\n",
       " 'UTA',\n",
       " 'NYK',\n",
       " 'CHA',\n",
       " 'GSW',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'DAL',\n",
       " 'SAS',\n",
       " 'DET',\n",
       " 'SAC',\n",
       " 'CLE',\n",
       " 'PHX',\n",
       " 'POR',\n",
       " 'SAS',\n",
       " 'WAS',\n",
       " 'NJN',\n",
       " 'BOS',\n",
       " 'MIA',\n",
       " 'UTA',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'SAS',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'POR',\n",
       " 'CLE',\n",
       " 'BOS',\n",
       " 'WAS',\n",
       " 'ATL',\n",
       " 'GSW',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'SAS',\n",
       " 'CHI',\n",
       " 'MIL',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'MEM',\n",
       " 'MIN',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'GSW',\n",
       " 'NOH',\n",
       " 'ORL',\n",
       " 'MIN',\n",
       " 'NJN',\n",
       " 'PHI',\n",
       " 'TOR',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'TOR',\n",
       " 'PHX',\n",
       " 'PHX',\n",
       " 'SEA',\n",
       " 'CLE',\n",
       " 'MIA',\n",
       " 'NOH',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'PHX',\n",
       " 'SAC',\n",
       " 'UTA',\n",
       " 'IND',\n",
       " 'NYK',\n",
       " 'DEN',\n",
       " 'DEN',\n",
       " 'SAS',\n",
       " 'NYK',\n",
       " 'HOU',\n",
       " 'UTA',\n",
       " 'POR',\n",
       " 'SEA',\n",
       " 'LAC',\n",
       " 'DET',\n",
       " 'SEA',\n",
       " 'IND',\n",
       " 'MIN',\n",
       " 'PHI',\n",
       " 'CHI',\n",
       " 'DET',\n",
       " 'MIN',\n",
       " 'MIL',\n",
       " 'LAC',\n",
       " 'SAC',\n",
       " 'BOS',\n",
       " 'SAS',\n",
       " 'ATL',\n",
       " 'HOU',\n",
       " 'WAS',\n",
       " 'SEA',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'PHX',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'GSW',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'MIL',\n",
       " 'SAS',\n",
       " 'NOH',\n",
       " 'MEM',\n",
       " 'TOR',\n",
       " 'DET',\n",
       " 'MIA',\n",
       " 'DET',\n",
       " 'NYK',\n",
       " 'CHI',\n",
       " 'MEM',\n",
       " 'WAS',\n",
       " 'SAS',\n",
       " 'IND',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'NYK',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'HOU',\n",
       " 'BOS',\n",
       " 'SEA',\n",
       " 'LAC',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'ATL',\n",
       " 'CLE',\n",
       " 'UTA',\n",
       " 'SEA',\n",
       " 'HOU',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'PHI',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'SAC',\n",
       " 'WAS',\n",
       " 'NJN',\n",
       " 'HOU',\n",
       " 'BOS',\n",
       " 'MIN',\n",
       " 'CHI',\n",
       " 'ORL',\n",
       " 'LAC',\n",
       " 'LAC',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'UTA',\n",
       " 'NOH',\n",
       " 'HOU',\n",
       " 'SEA',\n",
       " 'SAS',\n",
       " 'POR',\n",
       " 'MEM',\n",
       " 'SAC',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'SAS',\n",
       " 'ATL',\n",
       " 'NOP',\n",
       " 'MEM',\n",
       " 'ORL',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'PHX',\n",
       " 'CHI',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'NOP',\n",
       " 'MIL',\n",
       " 'CHI',\n",
       " 'GSW',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'ORL',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'WAS',\n",
       " 'MEM',\n",
       " 'NOP',\n",
       " 'MIA',\n",
       " 'TOR',\n",
       " 'DEN',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'CLE',\n",
       " 'CLE',\n",
       " 'UTA',\n",
       " 'BOS',\n",
       " 'POR',\n",
       " 'DET',\n",
       " 'TOR',\n",
       " 'NYK',\n",
       " 'BOS',\n",
       " 'DAL',\n",
       " 'IND',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'CHA',\n",
       " 'WAS',\n",
       " 'PHI',\n",
       " 'MIA',\n",
       " 'IND',\n",
       " 'SEA',\n",
       " 'UTA',\n",
       " 'DEN',\n",
       " 'PHI',\n",
       " 'NYK',\n",
       " 'MIN',\n",
       " 'SAS',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'DAL',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'ATL',\n",
       " 'MIN',\n",
       " 'PHI',\n",
       " 'MEM',\n",
       " 'NYK',\n",
       " 'LAC',\n",
       " 'CHI',\n",
       " 'SEA',\n",
       " 'NJN',\n",
       " 'SAS',\n",
       " 'UTA',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'MIL',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'MIN',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'WAS',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'ORL',\n",
       " 'MIA',\n",
       " 'WAS',\n",
       " 'MEM',\n",
       " 'PHI',\n",
       " 'LAC',\n",
       " 'IND',\n",
       " 'POR',\n",
       " 'CLE',\n",
       " 'GSW',\n",
       " 'MIA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'TOR',\n",
       " 'GSW',\n",
       " 'DET',\n",
       " 'NYK',\n",
       " 'IND',\n",
       " 'CHA',\n",
       " 'NOP',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'ATL',\n",
       " 'POR',\n",
       " 'SAC',\n",
       " 'LAC',\n",
       " 'BOS',\n",
       " 'ORL',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'DET',\n",
       " 'SAS',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'NJN',\n",
       " 'CLE',\n",
       " 'BOS',\n",
       " 'SAC',\n",
       " 'MIL',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'SEA',\n",
       " 'HOU',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'PHX',\n",
       " 'NOP',\n",
       " 'SEA',\n",
       " 'SEA',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'DET',\n",
       " 'MEM',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'LAC',\n",
       " 'UTA',\n",
       " 'NJN',\n",
       " 'MIL',\n",
       " 'UTA',\n",
       " 'LAC',\n",
       " 'IND',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'WAS',\n",
       " 'CHI',\n",
       " 'MIN',\n",
       " 'NJN',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'CHA',\n",
       " 'PHI',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'ORL',\n",
       " 'MIA',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'NOP',\n",
       " 'GSW',\n",
       " 'CHA',\n",
       " 'SAS',\n",
       " 'BOS',\n",
       " 'IND',\n",
       " 'WAS',\n",
       " 'ATL',\n",
       " 'DET',\n",
       " 'TOR',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'CLE',\n",
       " 'POR',\n",
       " 'BOS',\n",
       " 'GSW',\n",
       " 'UTA',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'MIN',\n",
       " 'PHI',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'MIN',\n",
       " 'MEM',\n",
       " 'NOP',\n",
       " 'GSW',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'SEA',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'PHX',\n",
       " 'SEA',\n",
       " 'SAC',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'NOH',\n",
       " 'MIN',\n",
       " 'SAS',\n",
       " 'HOU',\n",
       " 'DET',\n",
       " 'CHI',\n",
       " 'IND',\n",
       " 'MIL',\n",
       " 'BOS',\n",
       " 'NJN',\n",
       " 'SEA',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'ORL',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'GSW',\n",
       " 'SAS',\n",
       " 'GSW',\n",
       " 'LAC',\n",
       " 'CHI',\n",
       " 'CLE',\n",
       " 'PHI',\n",
       " 'NYK',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'BOS',\n",
       " 'PHI',\n",
       " 'IND',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'MIL',\n",
       " 'MEM',\n",
       " 'SEA',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'DET',\n",
       " 'TOR',\n",
       " 'WAS',\n",
       " 'NJN',\n",
       " 'ATL',\n",
       " 'ORL',\n",
       " 'MIA',\n",
       " 'CHA',\n",
       " 'MIN',\n",
       " 'ATL',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'SEA',\n",
       " 'POR',\n",
       " 'MIA',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'LAC',\n",
       " 'SAC',\n",
       " 'TOR',\n",
       " 'NOH',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'SEA',\n",
       " 'GSW',\n",
       " 'GSW',\n",
       " 'CHA',\n",
       " 'MEM',\n",
       " 'WAS',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'SAC',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'NOH',\n",
       " 'SAS',\n",
       " 'SAC',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'DEN',\n",
       " 'LAC',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'NOH',\n",
       " 'DET',\n",
       " 'CHI',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'SAC',\n",
       " 'NJN',\n",
       " 'DAL',\n",
       " 'TOR',\n",
       " 'IND',\n",
       " 'PHI',\n",
       " 'WAS',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'NYK',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'BOS',\n",
       " 'GSW',\n",
       " 'UTA',\n",
       " 'POR',\n",
       " 'NOH',\n",
       " 'GSW',\n",
       " 'IND',\n",
       " 'MIA',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'ORL',\n",
       " 'CLE',\n",
       " 'LAC',\n",
       " 'WAS',\n",
       " 'SAS',\n",
       " 'CHA',\n",
       " 'MIN',\n",
       " 'MEM',\n",
       " 'NYK',\n",
       " 'TOR',\n",
       " 'BOS',\n",
       " 'CLE',\n",
       " 'OKC',\n",
       " 'UTA',\n",
       " 'ATL',\n",
       " 'GSW',\n",
       " 'NOH',\n",
       " 'MIN',\n",
       " 'OKC',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'MEM',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'PHI',\n",
       " 'GSW',\n",
       " 'CHI',\n",
       " 'OKC',\n",
       " 'DET',\n",
       " 'NJN',\n",
       " 'ATL',\n",
       " 'CHA',\n",
       " 'MIL',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'SAC',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'ATL',\n",
       " 'OKC',\n",
       " 'HOU',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'PHX',\n",
       " 'DEN',\n",
       " 'HOU',\n",
       " 'DET',\n",
       " 'CHI',\n",
       " 'OKC',\n",
       " 'NYK',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'NOH',\n",
       " 'MIA',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'MIN',\n",
       " 'UTA',\n",
       " 'CHI',\n",
       " 'MIL',\n",
       " 'NJN',\n",
       " 'DET',\n",
       " 'OKC',\n",
       " 'CLE',\n",
       " 'SAC',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'SAC',\n",
       " 'DAL',\n",
       " 'HOU',\n",
       " 'LAC',\n",
       " 'POR',\n",
       " 'MIL',\n",
       " 'SAS',\n",
       " 'DAL',\n",
       " 'LAC',\n",
       " 'ORL',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'TOR',\n",
       " 'WAS',\n",
       " 'IND',\n",
       " 'PHI',\n",
       " 'BOS',\n",
       " 'MEM',\n",
       " 'CHA',\n",
       " 'DEN',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'PHI',\n",
       " 'DEN',\n",
       " 'IND',\n",
       " 'MIA',\n",
       " 'CHA',\n",
       " 'ORL',\n",
       " 'TOR',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'SAC',\n",
       " 'MIN',\n",
       " 'WAS',\n",
       " 'SAS',\n",
       " 'OKC',\n",
       " 'HOU',\n",
       " 'NOH',\n",
       " 'ATL',\n",
       " 'UTA',\n",
       " 'SAS',\n",
       " 'POR',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'GSW',\n",
       " 'MEM',\n",
       " 'SAC',\n",
       " 'TOR',\n",
       " 'POR',\n",
       " 'MIN',\n",
       " 'DEN',\n",
       " 'PHX',\n",
       " 'MIL',\n",
       " 'DET',\n",
       " 'MIN',\n",
       " 'GSW',\n",
       " 'CHI',\n",
       " 'UTA',\n",
       " 'IND',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'SAC',\n",
       " 'WAS',\n",
       " 'LAC',\n",
       " 'CHI',\n",
       " 'NJN',\n",
       " 'WAS',\n",
       " 'IND',\n",
       " 'PHI',\n",
       " 'TOR',\n",
       " 'MIL',\n",
       " 'MIA',\n",
       " 'SAS',\n",
       " 'NOH',\n",
       " 'PHI',\n",
       " 'MEM',\n",
       " 'DET',\n",
       " 'PHX',\n",
       " 'NOH',\n",
       " 'NYK',\n",
       " 'CLE',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'LAC',\n",
       " 'OKC',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'SAC',\n",
       " 'BOS',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'NOH',\n",
       " 'MEM',\n",
       " 'BOS',\n",
       " 'NYK',\n",
       " 'ORL',\n",
       " 'CHA',\n",
       " 'CLE',\n",
       " 'ATL',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'OKC',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'SAS',\n",
       " 'ATL',\n",
       " 'MIA',\n",
       " 'DAL',\n",
       " 'ORL',\n",
       " 'MIN',\n",
       " 'POR',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'NOH',\n",
       " 'DAL',\n",
       " 'UTA',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'GSW',\n",
       " 'POR',\n",
       " 'OKC',\n",
       " 'SAS',\n",
       " 'SAC',\n",
       " 'CHI',\n",
       " 'SAC',\n",
       " 'UTA',\n",
       " 'NYK',\n",
       " 'DEN',\n",
       " 'DEN',\n",
       " 'HOU',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'MEM',\n",
       " 'PHX',\n",
       " 'UTA',\n",
       " 'CLE',\n",
       " 'LAC',\n",
       " 'DAL',\n",
       " 'MIA',\n",
       " 'ORL',\n",
       " 'IND',\n",
       " 'LAC',\n",
       " 'MIL',\n",
       " 'MIN',\n",
       " 'CHA',\n",
       " 'DEN',\n",
       " 'UTA',\n",
       " 'PHI',\n",
       " 'BOS',\n",
       " 'NYK',\n",
       " 'TOR',\n",
       " 'ATL',\n",
       " 'PHX',\n",
       " 'PHX',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'OKC',\n",
       " 'MIN',\n",
       " 'SAC',\n",
       " 'MIA',\n",
       " 'DET',\n",
       " 'WAS',\n",
       " 'MIN',\n",
       " 'BOS',\n",
       " 'MEM',\n",
       " 'NOH',\n",
       " 'MIN',\n",
       " 'UTA',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'MEM',\n",
       " 'GSW',\n",
       " 'OKC',\n",
       " 'NOH',\n",
       " 'GSW',\n",
       " 'NJN',\n",
       " 'LAC',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'OKC',\n",
       " 'DAL',\n",
       " 'POR',\n",
       " 'LAC',\n",
       " 'DET',\n",
       " 'UTA',\n",
       " 'GSW',\n",
       " 'SAC',\n",
       " 'SAS',\n",
       " 'PHX',\n",
       " 'HOU',\n",
       " 'BKN',\n",
       " 'SAC',\n",
       " 'MEM',\n",
       " 'DAL',\n",
       " 'IND',\n",
       " 'DEN',\n",
       " 'ORL',\n",
       " 'HOU',\n",
       " 'NOH',\n",
       " 'OKC',\n",
       " 'UTA',\n",
       " 'CLE',\n",
       " 'NYK',\n",
       " 'WAS',\n",
       " 'PHI',\n",
       " 'CHA',\n",
       " 'GSW',\n",
       " 'NYK',\n",
       " 'DEN',\n",
       " 'POR',\n",
       " 'PHI',\n",
       " 'LAC',\n",
       " 'DEN',\n",
       " 'HOU',\n",
       " 'SAS',\n",
       " 'OKC',\n",
       " 'CLE',\n",
       " 'MIL',\n",
       " 'MIA',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'MEM',\n",
       " 'UTA',\n",
       " 'OKC',\n",
       " 'NOH',\n",
       " 'PHX',\n",
       " 'MIN',\n",
       " 'DET',\n",
       " 'BKN',\n",
       " 'BOS',\n",
       " 'CHA',\n",
       " 'MIA',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'BOS',\n",
       " 'POR',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'MIN',\n",
       " 'ATL',\n",
       " 'OKC',\n",
       " 'NOH',\n",
       " 'TOR',\n",
       " 'CHI',\n",
       " 'ORL',\n",
       " 'ATL',\n",
       " 'IND',\n",
       " 'WAS',\n",
       " 'GSW',\n",
       " 'MIN',\n",
       " 'MIL',\n",
       " 'SAC',\n",
       " 'DAL',\n",
       " 'MEM',\n",
       " 'LAC',\n",
       " 'NOH',\n",
       " 'POR',\n",
       " 'GSW',\n",
       " 'TOR',\n",
       " 'PHX',\n",
       " 'OKC',\n",
       " 'CHA',\n",
       " 'ATL',\n",
       " 'MEM',\n",
       " 'HOU',\n",
       " 'PHX',\n",
       " 'LAC',\n",
       " 'GSW',\n",
       " 'PHX',\n",
       " 'CHA',\n",
       " 'MEM',\n",
       " 'NOP',\n",
       " 'SAS',\n",
       " 'GSW',\n",
       " 'ATL',\n",
       " 'HOU',\n",
       " 'DAL',\n",
       " 'DEN',\n",
       " 'MEM',\n",
       " 'MIN',\n",
       " 'TOR',\n",
       " 'DET',\n",
       " 'WAS',\n",
       " 'BOS',\n",
       " 'NOP',\n",
       " 'SAC',\n",
       " ...]"
      ]
     },
     "execution_count": 105,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "list(list(zip(*(a.unique()).tolist()))[1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 118,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0       POR\n",
       "1       UTA\n",
       "2       VAN\n",
       "3       LAC\n",
       "4       HOU\n",
       "5       SAS\n",
       "6       HOU\n",
       "7       DEN\n",
       "8       SAC\n",
       "9       DEN\n",
       "10      CHI\n",
       "11      GSW\n",
       "12      MIN\n",
       "13      LAC\n",
       "14      IND\n",
       "15      SEA\n",
       "16      SAS\n",
       "17      DAL\n",
       "18      PHI\n",
       "19      GSW\n",
       "20      SEA\n",
       "21      DET\n",
       "22      MIL\n",
       "23      POR\n",
       "24      VAN\n",
       "25      TOR\n",
       "26      MIA\n",
       "27      HOU\n",
       "28      DAL\n",
       "29      POR\n",
       "       ... \n",
       "1529    HOU\n",
       "1530    HOU\n",
       "1531    HOU\n",
       "1532    HOU\n",
       "1533    SAS\n",
       "1534    SAS\n",
       "1535    SAS\n",
       "1536    SAS\n",
       "1537    SAC\n",
       "1538    SAC\n",
       "1539    SAC\n",
       "1540    SAC\n",
       "1541    SAC\n",
       "1542    PHX\n",
       "1543    PHX\n",
       "1544    PHX\n",
       "1545    PHX\n",
       "1546    PHX\n",
       "1547    POR\n",
       "1548    POR\n",
       "1549    POR\n",
       "1550    POR\n",
       "1551    POR\n",
       "1552    POR\n",
       "1553    POR\n",
       "1554    IND\n",
       "1555    IND\n",
       "1556    IND\n",
       "1557    IND\n",
       "1558    IND\n",
       "Length: 1559, dtype: object"
      ]
     },
     "execution_count": 118,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.Series(list(list(zip(*(a.unique()).tolist()))[1]))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 114,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'SAS'"
      ]
     },
     "execution_count": 114,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.Series(list(list(zip(*(a.unique()).tolist()))[1])).value_counts().index[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 125,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "Int64Index: 30697 entries, 1 to 30697\n",
      "Data columns (total 24 columns):\n",
      "action_type           30697 non-null object\n",
      "combined_shot_type    30697 non-null object\n",
      "game_event_id         30697 non-null int64\n",
      "game_id               30697 non-null int64\n",
      "lat                   30697 non-null float64\n",
      "loc_x                 30697 non-null int64\n",
      "loc_y                 30697 non-null int64\n",
      "lon                   30697 non-null float64\n",
      "minutes_remaining     30697 non-null int64\n",
      "period                30697 non-null int64\n",
      "playoffs              30697 non-null int64\n",
      "season                30697 non-null object\n",
      "seconds_remaining     30697 non-null int64\n",
      "shot_distance         30697 non-null int64\n",
      "shot_made_flag        25697 non-null float64\n",
      "shot_type             30697 non-null object\n",
      "shot_zone_area        30697 non-null object\n",
      "shot_zone_basic       30697 non-null object\n",
      "shot_zone_range       30697 non-null object\n",
      "team_id               30697 non-null int64\n",
      "team_name             30697 non-null object\n",
      "game_date             30697 non-null object\n",
      "matchup               30697 non-null object\n",
      "opponent              30697 non-null object\n",
      "dtypes: float64(3), int64(10), object(11)\n",
      "memory usage: 5.9+ MB\n"
     ]
    }
   ],
   "source": [
    "df.info()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
